Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 80.92 kB / 22.29 MB, free: 2.203 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 163 kB / 25.69 MB, free: 8.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8188/0.8188, allocations: 158.6 MB / 187.6 MB, free: 2.793 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.[0-9,]+..v.re|terminalBoxQS.plugSupply.pin.[0-9,]+..v.im|terminalBoxQS.plugSupply.pin.[0-9,]+..i.re|terminalBoxQS.plugSupply.pin.[0-9,]+..i.im",fileNamePrefix="Modelica_3.2.3_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=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.[0-9,]+..v.re|terminalBoxQS.plugSupply.pin.[0-9,]+..v.im|terminalBoxQS.plugSupply.pin.[0-9,]+..i.re|terminalBoxQS.plugSupply.pin.[0-9,]+..i.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 251.6 MB, free: 7.176 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.506e-05/1.633e-05, allocations: 10.25 kB / 251.6 MB, free: 7.164 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02805/0.02806, allocations: 39.21 MB / 290.8 MB, free: 15.78 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02071/0.04878, allocations: 11.6 MB / 302.4 MB, free: 4.141 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005056/0.05383, allocations: 330.1 kB / 302.8 MB, free: 3.816 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009573/0.06341, allocations: 9.307 MB / 312.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007552/0.07096, allocations: 3.972 MB / 316 MB, free: 6.469 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003407/0.07436, allocations: 2.478 MB / 318.5 MB, free: 3.984 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01133/0.08569, allocations: 14.46 MB / 333 MB, free: 5.465 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01688/0.1026, allocations: 18.16 MB / 351.1 MB, free: 3.086 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.212/0.3146, allocations: 11.25 MB / 362.4 MB, free: 32.69 MB / 330.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008397/0.323, allocations: 7.994 MB / 370.4 MB, free: 32.69 MB / 330.8 MB Notification: Performance of NFPackage.collectConstants: time 0.002163/0.3251, allocations: 2.017 MB / 372.4 MB, free: 32.69 MB / 330.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002864/0.328, allocations: 2.42 MB / 374.8 MB, free: 32.69 MB / 330.8 MB Notification: Performance of NFScalarize.scalarize: time 0.001986/0.33, allocations: 4.363 MB / 379.2 MB, free: 32.69 MB / 330.8 MB Notification: Performance of NFVerifyModel.verify: time 0.004224/0.3342, allocations: 5.43 MB / 384.6 MB, free: 32.69 MB / 330.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01073/0.3449, allocations: 13.26 MB / 397.9 MB, free: 28.29 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3449, allocations: 0 / 397.9 MB, free: 28.29 MB / 330.8 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3449, allocations: 0 / 397.9 MB, free: 28.29 MB / 330.8 MB Notification: Performance of Transformations before backend: time 0.0002624/0.3452, allocations: 6.531 kB / 397.9 MB, free: 28.29 MB / 330.8 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.01799/0.3632, allocations: 15.53 MB / 413.4 MB, free: 14.84 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.3632, allocations: 15.98 kB / 413.4 MB, free: 14.82 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02399/0.3872, allocations: 9.03 MB / 422.5 MB, free: 6.113 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005824/0.393, allocations: 4.017 MB / 426.5 MB, free: 2.41 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003141/0.3934, allocations: 0.9692 MB / 427.4 MB, free: 1.453 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001183/0.3945, allocations: 1.28 MB / 428.7 MB, free: 196 kB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01194/0.4065, allocations: 10.5 MB / 439.2 MB, free: 6.129 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001931/0.4067, allocations: 29.78 kB / 439.3 MB, free: 6.105 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008448/0.4075, allocations: 0.5291 MB / 439.8 MB, free: 5.594 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004406/0.408, allocations: 0.7455 MB / 440.5 MB, free: 4.848 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008013/0.416, allocations: 5.344 MB / 445.9 MB, free: 15.51 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0424/0.4584, allocations: 39.48 MB / 485.4 MB, free: 9.301 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009825/0.4682, allocations: 8.837 MB / 494.2 MB, free: 0.6602 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/0.4698, allocations: 1.454 MB / 495.6 MB, free: 15.25 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009131/0.479, allocations: 5.388 MB / 0.4893 GB, free: 10.08 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.618e-05/0.479, allocations: 69.41 kB / 0.4894 GB, free: 10 MB / 410.8 MB Notification: Performance of pre-optimization done (n=361): time 4.569e-06/0.479, allocations: 0 / 0.4894 GB, free: 10 MB / 410.8 MB Notification: Performance of matching and sorting (n=403): time 0.01427/0.4933, allocations: 8.505 MB / 0.4977 GB, free: 1.605 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.4933, allocations: 97.67 kB / 0.4978 GB, free: 1.5 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1341/0.6274, allocations: 3.848 MB / 0.5015 GB, free: 96.43 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005487/0.6279, allocations: 94.2 kB / 0.5016 GB, free: 96.39 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00173/0.6297, allocations: 5.705 MB / 0.5072 GB, free: 94.23 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008788/0.6305, allocations: 1.478 MB / 0.5086 GB, free: 93.48 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001335/0.6319, allocations: 1.442 MB / 0.51 GB, free: 93.34 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.322e-05/0.6319, allocations: 301.1 kB / 0.5103 GB, free: 93.04 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.633, allocations: 0.9654 MB / 0.5113 GB, free: 93.02 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00189/0.6349, allocations: 4.552 MB / 0.5157 GB, free: 88.29 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0042/0.6391, allocations: 6.336 MB / 0.5219 GB, free: 83.52 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.281e-05/0.6392, allocations: 37.31 kB / 0.5219 GB, free: 83.52 MB / 410.8 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.006051/0.6452, allocations: 5.284 MB / 0.5271 GB, free: 83.23 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.305e-05/0.6453, allocations: 59.78 kB / 0.5271 GB, free: 83.23 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001095/0.6454, allocations: 132.3 kB / 0.5273 GB, free: 83.23 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001496/0.6469, allocations: 0.8352 MB / 0.5281 GB, free: 83.16 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003568/0.6505, allocations: 1.854 MB / 0.5299 GB, free: 83.15 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00447/0.6549, allocations: 6.081 MB / 0.5358 GB, free: 79.48 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003807/0.6587, allocations: 338.5 kB / 0.5362 GB, free: 79.45 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006773/0.6594, allocations: 351.1 kB / 0.5365 GB, free: 79.45 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002473/0.6619, allocations: 0.6724 MB / 0.5371 GB, free: 79.33 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007481/0.6626, allocations: 457.9 kB / 0.5376 GB, free: 79.32 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003554/0.6662, allocations: 2.842 MB / 0.5404 GB, free: 79.04 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.089e-05/0.6662, allocations: 41.66 kB / 0.5404 GB, free: 79.04 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/0.6662, allocations: 8.062 kB / 0.5404 GB, free: 79.04 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.6662, allocations: 22.42 kB / 0.5404 GB, free: 79.04 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00944/0.6757, allocations: 7.179 MB / 0.5474 GB, free: 78.34 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.697e-06/0.6757, allocations: 3.594 kB / 0.5474 GB, free: 78.34 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/0.6775, allocations: 0.7535 MB / 0.5482 GB, free: 78.33 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001304/0.6788, allocations: 0.6641 MB / 0.5488 GB, free: 78.25 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000218/0.679, allocations: 80.03 kB / 0.5489 GB, free: 78.25 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003631/0.6827, allocations: 5.648 MB / 0.5544 GB, free: 74.62 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.6827, allocations: 7.875 kB / 0.5544 GB, free: 74.62 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004074/0.6867, allocations: 3.436 MB / 0.5578 GB, free: 73.96 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001296/0.688, allocations: 0.6119 MB / 0.5584 GB, free: 73.65 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004672/0.6885, allocations: 76.28 kB / 0.5585 GB, free: 73.65 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.6895, allocations: 113 kB / 0.5586 GB, free: 73.65 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003893/0.6899, allocations: 284.9 kB / 0.5588 GB, free: 73.64 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/0.6901, allocations: 77.84 kB / 0.5589 GB, free: 73.64 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.001755/0.6918, allocations: 1.756 MB / 0.5606 GB, free: 73.43 MB / 410.8 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6918, allocations: 8 kB / 0.5606 GB, free: 73.42 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005098/0.6969, allocations: 2.025 MB / 0.5626 GB, free: 71.59 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004293/0.6974, allocations: 243.1 kB / 0.5628 GB, free: 71.46 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.004213/0.7016, allocations: 4.024 MB / 0.5668 GB, free: 68.53 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001631/0.7017, allocations: 112.2 kB / 0.5669 GB, free: 68.41 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/0.7033, allocations: 1.798 MB / 0.5686 GB, free: 67.03 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003662/0.707, allocations: 1.304 MB / 0.5699 GB, free: 66.29 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02679/0.7338, allocations: 18.34 MB / 0.5878 GB, free: 50.81 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002714/0.7365, allocations: 2.391 MB / 0.5902 GB, free: 48.69 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.00349/0.74, allocations: 0.9314 MB / 0.5911 GB, free: 47.75 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002436/0.7424, allocations: 1.227 MB / 0.5923 GB, free: 46.55 MB / 410.8 MB Notification: Performance of SimCode: time 1.864e-06/0.7424, allocations: 6.297 kB / 0.5923 GB, free: 46.55 MB / 410.8 MB Notification: Performance of Templates: time 0.2147/0.9571, allocations: 76.04 MB / 0.6665 GB, free: 108.5 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.361736278049648]