Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009198/0.0009197, allocations: 181.9 kB / 17.41 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.32/1.32, allocations: 205.4 MB / 223.6 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008126/0.0008127, allocations: 94.3 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003052/0.0003053, allocations: 8 kB / 328.2 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2235, allocations: 47.56 MB / 375.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3225/0.5461, allocations: 163.9 MB / 0.527 GB, free: 92.87 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/0.5464, allocations: 106.6 kB / 0.5271 GB, free: 92.81 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.098/1.645, allocations: 393.8 MB / 0.9116 GB, free: 36.12 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.777e-06/1.645, allocations: 0 / 0.9116 GB, free: 36.12 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001171/1.646, allocations: 299.5 kB / 0.9119 GB, free: 36.08 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.04135/1.687, allocations: 11.88 MB / 0.9235 GB, free: 32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/1.687, allocations: 11.69 kB / 0.9235 GB, free: 32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03365/1.721, allocations: 6.446 MB / 0.9298 GB, free: 31.17 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02257/1.744, allocations: 9.084 MB / 0.9387 GB, free: 25.83 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001203/1.745, allocations: 0.9465 MB / 0.9396 GB, free: 24.9 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00533/1.75, allocations: 1.244 MB / 0.9408 GB, free: 23.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05556/1.806, allocations: 21 MB / 0.9613 GB, free: 4.996 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005778/1.806, allocations: 27.8 kB / 0.9614 GB, free: 4.969 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00447/1.811, allocations: 0.5352 MB / 0.9619 GB, free: 4.449 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001001/1.812, allocations: 0.85 MB / 0.9627 GB, free: 3.598 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04294/1.855, allocations: 18.95 MB / 0.9812 GB, free: 0.6289 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.385/2.24, allocations: 65.92 MB / 1.046 GB, free: 37.29 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03252/2.272, allocations: 46.17 MB / 1.091 GB, free: 13.18 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01237/2.285, allocations: 7.885 MB / 1.098 GB, free: 9.906 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04053/2.325, allocations: 23.92 MB / 1.122 GB, free: 14.81 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.887e-05/2.326, allocations: 102.8 kB / 1.122 GB, free: 14.72 MB / 490.7 MB Notification: Performance of pre-optimization done (n=773): time 9.978e-06/2.326, allocations: 0 / 1.122 GB, free: 14.72 MB / 490.7 MB Notification: Performance of matching and sorting (n=815): time 0.09245/2.418, allocations: 40.79 MB / 1.162 GB, free: 9.293 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.721e-05/2.418, allocations: 125.7 kB / 1.162 GB, free: 9.156 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006957/2.425, allocations: 4.32 MB / 1.166 GB, free: 5.531 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001462/2.427, allocations: 141.7 kB / 1.166 GB, free: 5.387 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003283/2.43, allocations: 5.079 MB / 1.171 GB, free: 0.8867 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.2397/2.67, allocations: 2.706 MB / 1.174 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009035/2.671, allocations: 164.5 kB / 1.174 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006737/2.671, allocations: 0.6777 MB / 1.175 GB, free: 99.86 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007571/2.679, allocations: 5.163 MB / 1.18 GB, free: 99.84 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00901/2.688, allocations: 7.661 MB / 1.187 GB, free: 97.02 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01755/2.705, allocations: 13.73 MB / 1.201 GB, free: 94.13 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001197/2.706, allocations: 23.59 kB / 1.201 GB, free: 94.13 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1170) (initialization): time 0.02727/2.733, allocations: 15.86 MB / 1.216 GB, free: 93.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.71e-05/2.733, allocations: 39.62 kB / 1.216 GB, free: 93.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001504/2.733, allocations: 75.66 kB / 1.216 GB, free: 93.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006867/2.74, allocations: 4.119 MB / 1.22 GB, free: 93.69 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006433/2.747, allocations: 1.675 MB / 1.222 GB, free: 93.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/2.758, allocations: 12.24 MB / 1.234 GB, free: 88.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006287/2.764, allocations: 459.1 kB / 1.234 GB, free: 88.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001535/2.766, allocations: 398.4 kB / 1.235 GB, free: 88.96 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (872): * Single equations (assignments): 816 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.009552/2.775, allocations: 4.449 MB / 1.239 GB, free: 87.75 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001499/2.777, allocations: 0.6126 MB / 1.24 GB, free: 87.43 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02207/2.799, allocations: 14.49 MB / 1.254 GB, free: 81.18 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001748/2.799, allocations: 192.2 kB / 1.254 GB, free: 81.08 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/2.799, allocations: 8.656 kB / 1.254 GB, free: 81.08 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.659e-05/2.799, allocations: 33.94 kB / 1.254 GB, free: 81.08 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04659/2.846, allocations: 29.08 MB / 1.282 GB, free: 68.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.549e-05/2.846, allocations: 7.844 kB / 1.282 GB, free: 68.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004637/2.851, allocations: 1.058 MB / 1.283 GB, free: 68.47 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006507/2.857, allocations: 4.025 MB / 1.287 GB, free: 65.34 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001294/2.858, allocations: 177.2 kB / 1.287 GB, free: 65.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01024/2.869, allocations: 12.05 MB / 1.299 GB, free: 53.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/2.869, allocations: 5.406 kB / 1.299 GB, free: 53.84 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03328/2.902, allocations: 21.53 MB / 1.32 GB, free: 34.66 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005335/2.907, allocations: 1.781 MB / 1.322 GB, free: 33.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00273/2.91, allocations: 123.7 kB / 1.322 GB, free: 32.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004769/2.915, allocations: 330.8 kB / 1.322 GB, free: 32.71 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001951/2.917, allocations: 0.5796 MB / 1.323 GB, free: 32.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009595/2.918, allocations: 223.8 kB / 1.323 GB, free: 32.14 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00495/2.923, allocations: 2.851 MB / 1.326 GB, free: 29.77 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.61e-07/2.923, allocations: 4 kB / 1.326 GB, free: 29.77 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01034/2.933, allocations: 2.215 MB / 1.328 GB, free: 27.57 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (553): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.00206/2.935, allocations: 0.6905 MB / 1.329 GB, free: 27.07 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02209/2.957, allocations: 13.18 MB / 1.342 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/2.957, allocations: 3.469 kB / 1.342 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.241/3.198, allocations: 6.814 MB / 1.348 GB, free: 93.72 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01216/3.211, allocations: 1.362 MB / 1.35 GB, free: 93.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05337/3.264, allocations: 29.79 MB / 1.379 GB, free: 82.98 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01576/3.28, allocations: 7.643 MB / 1.386 GB, free: 81.95 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003403/3.283, allocations: 0.5064 MB / 1.387 GB, free: 81.95 MB / 0.4948 GB Notification: Performance of SimCode: time 9.02e-07/3.283, allocations: 0 / 1.387 GB, free: 81.95 MB / 0.4948 GB Notification: Performance of Templates: time 1.853/5.136, allocations: 0.7728 GB / 2.159 GB, free: 111.6 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches