Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 79.91 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9788/0.9788, allocations: 173.4 MB / 201.1 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.004e-05/3.189e-05, allocations: 2.312 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008887/0.008918, allocations: 6.387 MB / 274.4 MB, free: 16 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004879/0.0138, allocations: 2.472 MB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005935/0.01439, allocations: 23.94 kB / 276.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002459/0.01685, allocations: 1.329 MB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001678/0.01853, allocations: 0.687 MB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001894/0.02042, allocations: 1.07 MB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001155/0.02158, allocations: 1.102 MB / 281.1 MB, free: 9.301 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009118/0.02249, allocations: 0.77 MB / 281.8 MB, free: 8.512 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006193/0.02311, allocations: 0.6471 MB / 282.5 MB, free: 7.863 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004811/0.02359, allocations: 426.8 kB / 282.9 MB, free: 7.445 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.02371, allocations: 100 kB / 283 MB, free: 7.348 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006441/0.02435, allocations: 395.3 kB / 283.4 MB, free: 6.961 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.02448, allocations: 235.1 kB / 283.6 MB, free: 6.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002522/0.02473, allocations: 363.1 kB / 284 MB, free: 6.375 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001134/0.02587, allocations: 1.067 MB / 285 MB, free: 5.305 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.02587, allocations: 4 kB / 285 MB, free: 5.301 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.02587, allocations: 0 / 285 MB, free: 5.301 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.02589, allocations: 0 / 285 MB, free: 5.301 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.002621/0.02851, allocations: 1.811 MB / 286.8 MB, free: 3.441 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.02855, allocations: 8.922 kB / 286.9 MB, free: 3.434 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001776/0.03033, allocations: 0.6557 MB / 287.5 MB, free: 2.777 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005339/0.03086, allocations: 434.5 kB / 287.9 MB, free: 2.324 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.737e-05/0.03093, allocations: 82.59 kB / 288 MB, free: 2.242 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.03104, allocations: 116.1 kB / 288.1 MB, free: 2.129 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.03212, allocations: 0.7753 MB / 288.9 MB, free: 1.309 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.03214, allocations: 4 kB / 288.9 MB, free: 1.305 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.576e-05/0.03221, allocations: 48 kB / 289 MB, free: 1.258 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.03223, allocations: 24 kB / 289 MB, free: 1.234 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000878/0.0331, allocations: 0.5399 MB / 289.5 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1171/0.1502, allocations: 2.861 MB / 292.4 MB, free: 20.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.1513, allocations: 0.7172 MB / 293.1 MB, free: 20.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003882/0.1516, allocations: 278.2 kB / 293.4 MB, free: 20.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.267e-05/0.1517, allocations: 28.8 kB / 293.4 MB, free: 20.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005096/0.1522, allocations: 444 kB / 293.8 MB, free: 20.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=96): time 3.076e-06/0.1522, allocations: 0.625 kB / 293.8 MB, free: 20.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=125): time 0.004514/0.1567, allocations: 2.897 MB / 296.7 MB, free: 19.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.1568, allocations: 146 kB / 296.9 MB, free: 19.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.1571, allocations: 410.1 kB / 297.3 MB, free: 19.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.34e-05/0.1571, allocations: 45.95 kB / 297.3 MB, free: 19.35 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00018/0.1573, allocations: 484 kB / 297.8 MB, free: 19.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/0.1575, allocations: 450.6 kB / 298.2 MB, free: 18.85 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002229/0.1578, allocations: 215.2 kB / 298.4 MB, free: 18.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1579, allocations: 0.5556 MB / 299 MB, free: 18.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003367/0.1582, allocations: 197 kB / 299.2 MB, free: 18.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004345/0.1586, allocations: 0.5043 MB / 299.7 MB, free: 18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007404/0.1594, allocations: 0.7047 MB / 300.4 MB, free: 17.74 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.1594, allocations: 1.125 kB / 300.4 MB, free: 17.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.00136/0.1607, allocations: 1.087 MB / 301.5 MB, free: 17.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.1608, allocations: 7.938 kB / 301.5 MB, free: 17.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.1608, allocations: 8.266 kB / 301.5 MB, free: 17.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008758/0.1617, allocations: 396.3 kB / 301.9 MB, free: 17.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000464/0.1621, allocations: 201.3 kB / 302.1 MB, free: 17.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003847/0.166, allocations: 9.377 MB / 311.5 MB, free: 8.891 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003498/0.1663, allocations: 48.02 kB / 311.5 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.419e-05/0.1664, allocations: 48.48 kB / 311.6 MB, free: 8.855 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002061/0.1666, allocations: 226.3 kB / 311.8 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.685e-05/0.1667, allocations: 111.2 kB / 311.9 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.1678, allocations: 1.002 MB / 312.9 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.1678, allocations: 11.81 kB / 312.9 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.1678, allocations: 12.97 kB / 312.9 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.1678, allocations: 4.266 kB / 312.9 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002029/0.1698, allocations: 1.928 MB / 314.8 MB, free: 7.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.1698, allocations: 3.344 kB / 314.8 MB, free: 7.297 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003297/0.1702, allocations: 153.4 kB / 315 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006851/0.1709, allocations: 379.5 kB / 315.4 MB, free: 7.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.726e-05/0.1709, allocations: 31.14 kB / 315.4 MB, free: 7.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003541/0.1744, allocations: 8.979 MB / 324.4 MB, free: 15.03 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1744, allocations: 10.75 kB / 324.4 MB, free: 15.03 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.176, allocations: 1.396 MB / 325.8 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.1762, allocations: 142.8 kB / 325.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.672e-05/0.1762, allocations: 24 kB / 325.9 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.1765, allocations: 37.23 kB / 326 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.1766, allocations: 101.8 kB / 326.1 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.845e-05/0.1766, allocations: 35.56 kB / 326.1 MB, free: 13.6 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001705/0.1768, allocations: 267.9 kB / 326.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1768, allocations: 4 kB / 326.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008412/0.1777, allocations: 312.4 kB / 326.7 MB, free: 13.06 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (rootMeanSquare.mean.x,coil.i,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002422/0.1779, allocations: 167.1 kB / 326.8 MB, free: 12.9 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.1794, allocations: 1.581 MB / 328.4 MB, free: 11.32 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1794, allocations: 0 / 328.4 MB, free: 11.32 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.1805, allocations: 1.243 MB / 329.7 MB, free: 10.03 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.1808, allocations: 80.98 kB / 329.8 MB, free: 9.953 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.1833, allocations: 1.795 MB / 331.5 MB, free: 8.121 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001682/0.1834, allocations: 207.6 kB / 331.7 MB, free: 7.898 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002456/0.1837, allocations: 101.9 kB / 331.8 MB, free: 7.797 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.1838, allocations: 56.48 kB / 331.9 MB, free: 7.742 MB / 282.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1838, allocations: 0 / 331.9 MB, free: 7.742 MB / 282.7 MB Notification: Performance of Templates: time 0.01615/0.2, allocations: 11.78 MB / 343.7 MB, free: 12.13 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.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: 3.0910308812744915]