Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001131/0.001131, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001775/0.002905, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001198/0.001198, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001678/0.002876, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9144/0.9144, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08293/0.9974, allocations: 53.67 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.666e-05/2.833e-05, allocations: 10.25 kB / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.162/0.1621, allocations: 37.91 MB / 282.7 MB, free: 2.238 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02207/0.1841, allocations: 11.26 MB / 293.9 MB, free: 15.92 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008115/0.1923, allocations: 369.5 kB / 294.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0132/0.2055, allocations: 9.05 MB / 303.3 MB, free: 12.29 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01196/0.2174, allocations: 3.558 MB / 306.9 MB, free: 9.414 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005976/0.2234, allocations: 2.383 MB / 309.3 MB, free: 7.527 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01575/0.2391, allocations: 13.59 MB / 322.9 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02515/0.2643, allocations: 17.16 MB / 340 MB, free: 11.29 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01991/0.2842, allocations: 11.09 MB / 351.1 MB, free: 128 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01145/0.2957, allocations: 7.513 MB / 358.6 MB, free: 8.598 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00493/0.3006, allocations: 1.941 MB / 360.6 MB, free: 6.656 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00726/0.3079, allocations: 2.362 MB / 362.9 MB, free: 4.293 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005173/0.313, allocations: 3.25 MB / 366.2 MB, free: 1.035 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01194/0.325, allocations: 4.278 MB / 370.5 MB, free: 12.75 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01769/0.3427, allocations: 11.87 MB / 382.3 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.258e-05/0.3427, allocations: 0 / 382.3 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3427, allocations: 0 / 382.3 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005187/0.3432, allocations: 0 / 382.3 MB, free: 0.8477 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.02715/0.3703, allocations: 17.1 MB / 399.4 MB, free: 15.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.3704, allocations: 12.03 kB / 399.4 MB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01983/0.3902, allocations: 6.333 MB / 405.8 MB, free: 9.262 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0101/0.4003, allocations: 4.392 MB / 410.2 MB, free: 4.773 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006446/0.4009, allocations: 0.9031 MB / 411.1 MB, free: 3.867 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002567/0.4035, allocations: 1.203 MB / 412.3 MB, free: 2.664 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02037/0.4239, allocations: 9.656 MB / 421.9 MB, free: 8.859 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003258/0.4242, allocations: 23.88 kB / 421.9 MB, free: 8.836 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0017/0.4259, allocations: 0.4921 MB / 422.4 MB, free: 8.344 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000453/0.4264, allocations: 0.6147 MB / 423 MB, free: 7.727 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01275/0.4391, allocations: 4.668 MB / 427.7 MB, free: 3.031 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2161/0.6552, allocations: 36.81 MB / 464.5 MB, free: 80.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006967/0.6622, allocations: 6.139 MB / 470.7 MB, free: 78.9 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001911/0.6641, allocations: 1.285 MB / 471.9 MB, free: 78.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003049/0.6644, allocations: 163.1 kB / 472.1 MB, free: 78.67 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.276e-05/0.6645, allocations: 85.44 kB / 472.2 MB, free: 78.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=478): time 7.394e-06/0.6645, allocations: 0 / 472.2 MB, free: 78.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=520): time 0.02155/0.686, allocations: 10.68 MB / 482.9 MB, free: 72.77 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.6861, allocations: 103.5 kB / 483 MB, free: 72.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002899/0.689, allocations: 3.303 MB / 486.3 MB, free: 70 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003585/0.6893, allocations: 109.7 kB / 486.4 MB, free: 69.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001166/0.6905, allocations: 4.935 MB / 491.3 MB, free: 65.12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009257/0.6914, allocations: 1.852 MB / 493.2 MB, free: 63.38 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001157/0.6926, allocations: 1.363 MB / 494.5 MB, free: 62.16 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 2.928e-05/0.6926, allocations: 310.8 kB / 494.8 MB, free: 61.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.6938, allocations: 0.9667 MB / 495.8 MB, free: 60.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/0.6955, allocations: 3.826 MB / 499.6 MB, free: 55.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004369/0.6999, allocations: 5.858 MB / 0.4936 GB, free: 49.21 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.966e-05/0.7, allocations: 28 kB / 0.4937 GB, free: 49.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=988) (initialization): time 0.007113/0.7071, allocations: 4.86 MB / 0.4984 GB, free: 44.95 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.672e-05/0.7071, allocations: 48 kB / 0.4985 GB, free: 44.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.883e-05/0.7072, allocations: 100 kB / 0.4985 GB, free: 44.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001497/0.7087, allocations: 0.8272 MB / 0.4994 GB, free: 43.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003647/0.7124, allocations: 1.923 MB / 0.5012 GB, free: 42.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004176/0.7165, allocations: 6.092 MB / 0.5072 GB, free: 35.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003484/0.72, allocations: 295.8 kB / 0.5075 GB, free: 35.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005713/0.7206, allocations: 304 kB / 0.5078 GB, free: 35.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * 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 (937): * Single equations (assignments): 932 * 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,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002245/0.7228, allocations: 0.6338 MB / 0.5084 GB, free: 34.88 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007542/0.7236, allocations: 491.4 kB / 0.5088 GB, free: 34.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003599/0.7272, allocations: 3.109 MB / 0.5119 GB, free: 31.24 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/0.7272, allocations: 53.2 kB / 0.5119 GB, free: 31.19 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.749e-06/0.7272, allocations: 12 kB / 0.5119 GB, free: 31.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.522e-05/0.7272, allocations: 23.91 kB / 0.512 GB, free: 31.16 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/0.7391, allocations: 8.458 MB / 0.5202 GB, free: 23.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/0.7392, allocations: 8 kB / 0.5202 GB, free: 23.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002268/0.7414, allocations: 0.9881 MB / 0.5212 GB, free: 22.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002056/0.7435, allocations: 0.6438 MB / 0.5218 GB, free: 21.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/0.7448, allocations: 0.667 MB / 0.5225 GB, free: 21.15 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002327/0.745, allocations: 104 kB / 0.5226 GB, free: 21.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003455/0.7485, allocations: 5.647 MB / 0.5281 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.7485, allocations: 8 kB / 0.5281 GB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004963/0.7534, allocations: 3.963 MB / 0.532 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/0.7546, allocations: 92 kB / 0.5321 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/0.7562, allocations: 132 kB / 0.5322 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004454/0.7566, allocations: 350 kB / 0.5325 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001868/0.7568, allocations: 104 kB / 0.5326 GB, free: 10.47 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001654/0.7585, allocations: 1.527 MB / 0.5341 GB, free: 9.133 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.7585, allocations: 0 / 0.5341 GB, free: 9.133 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004999/0.7635, allocations: 1.984 MB / 0.536 GB, free: 7.148 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (499): * Single equations (assignments): 494 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005489/0.764, allocations: 285.5 kB / 0.5363 GB, free: 6.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004702/0.7687, allocations: 4.139 MB / 0.5404 GB, free: 3.141 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001985/0.7689, allocations: 129.9 kB / 0.5405 GB, free: 3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002322/0.7712, allocations: 2.35 MB / 0.5428 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006947/0.7782, allocations: 10.71 MB / 0.5532 GB, free: 4.117 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07001/0.8482, allocations: 17.72 MB / 0.5705 GB, free: 2.301 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1304/0.9786, allocations: 2.318 MB / 0.5728 GB, free: 115.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003851/0.9824, allocations: 0.8823 MB / 0.5737 GB, free: 115.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002903/0.9854, allocations: 1.232 MB / 0.5749 GB, free: 115.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.473e-06/0.9854, allocations: 0 / 0.5749 GB, free: 115.5 MB / 426.7 MB Notification: Performance of Templates: time 0.1042/1.09, allocations: 80.61 MB / 0.6536 GB, free: 63.3 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.271441043354571]