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.002654/0.002654, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.003118/0.003118, allocations: 149.5 kB / 24.26 MB, free: 172 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 1.538/1.538, allocations: 173.3 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] 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.303e-06/1.303e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.49e-05/2.62e-05, allocations: 6.312 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.009356/0.009382, allocations: 6.304 MB / 273.6 MB, free: 404 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004795/0.01418, allocations: 2.464 MB / 276.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003927/0.01457, allocations: 20 kB / 276.1 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003318/0.01789, allocations: 1.341 MB / 277.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001789/0.01968, allocations: 0.6754 MB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002302/0.02198, allocations: 1.07 MB / 279.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001348/0.02333, allocations: 1.102 MB / 280.3 MB, free: 9.691 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001214/0.02454, allocations: 0.7738 MB / 281.1 MB, free: 8.898 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008342/0.02537, allocations: 0.6393 MB / 281.7 MB, free: 8.258 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006516/0.02603, allocations: 434.7 kB / 282.1 MB, free: 7.832 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001613/0.02619, allocations: 96 kB / 282.2 MB, free: 7.738 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007819/0.02697, allocations: 387.4 kB / 282.6 MB, free: 7.359 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000246/0.02722, allocations: 239.1 kB / 282.8 MB, free: 7.125 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004449/0.02766, allocations: 359.1 kB / 283.2 MB, free: 6.773 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002312/0.02997, allocations: 1.565 MB / 284.7 MB, free: 5.203 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.02998, allocations: 0 / 284.7 MB, free: 5.203 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.02998, allocations: 4 kB / 284.8 MB, free: 5.199 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.02999, allocations: 0 / 284.8 MB, free: 5.199 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.004909/0.0349, allocations: 1.92 MB / 286.7 MB, free: 3.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.03494, allocations: 12.92 kB / 286.7 MB, free: 3.219 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003418/0.03836, allocations: 0.6479 MB / 287.3 MB, free: 2.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008277/0.03919, allocations: 438.5 kB / 287.8 MB, free: 2.113 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-05/0.03928, allocations: 90.58 kB / 287.9 MB, free: 2.023 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/0.03948, allocations: 124.1 kB / 288 MB, free: 1.902 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001975/0.04145, allocations: 0.9779 MB / 288.9 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.823e-05/0.04149, allocations: 4 kB / 289 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.04159, allocations: 44 kB / 289 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.204e-05/0.04162, allocations: 31.98 kB / 289 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.101/0.1426, allocations: 0.9097 MB / 289.9 MB, free: 32.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005561/0.1482, allocations: 3.323 MB / 293.3 MB, free: 30.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/0.1497, allocations: 0.8375 MB / 294.1 MB, free: 30.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007428/0.1505, allocations: 397.1 kB / 294.5 MB, free: 30.28 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.1506, allocations: 26.14 kB / 294.5 MB, free: 30.28 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008602/0.1515, allocations: 0.5516 MB / 295.1 MB, free: 29.97 MB / 266.7 MB Notification: Performance of pre-optimization done (n=96): time 3.006e-06/0.1515, allocations: 3.438 kB / 295.1 MB, free: 29.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=125): time 0.007716/0.1592, allocations: 3.603 MB / 298.7 MB, free: 28.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.1592, allocations: 146.4 kB / 298.8 MB, free: 28.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005067/0.1597, allocations: 486.3 kB / 299.3 MB, free: 28.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.656e-05/0.1598, allocations: 47.8 kB / 299.3 MB, free: 28.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000268/0.1601, allocations: 497.9 kB / 299.8 MB, free: 27.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/0.1603, allocations: 467.3 kB / 300.3 MB, free: 27.31 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003214/0.1606, allocations: 243.6 kB / 300.5 MB, free: 27.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1608, allocations: 0.591 MB / 301.1 MB, free: 26.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006132/0.1614, allocations: 338 kB / 301.4 MB, free: 26.54 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008176/0.1622, allocations: 0.6696 MB / 302.1 MB, free: 26.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.1636, allocations: 1.039 MB / 303.1 MB, free: 25.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.1636, allocations: 1.375 kB / 303.1 MB, free: 25.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002299/0.1659, allocations: 1.425 MB / 304.6 MB, free: 24.89 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.1659, allocations: 12.44 kB / 304.6 MB, free: 24.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.1659, allocations: 7.875 kB / 304.6 MB, free: 24.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001468/0.1674, allocations: 461.2 kB / 305 MB, free: 24.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007835/0.1682, allocations: 205.2 kB / 305.2 MB, free: 24.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006036/0.1742, allocations: 10.39 MB / 315.6 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00083/0.1751, allocations: 43.23 kB / 315.7 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.187e-05/0.1751, allocations: 48.58 kB / 315.7 MB, free: 14.36 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.0004037/0.1755, allocations: 312.2 kB / 316 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.1757, allocations: 107.6 kB / 316.1 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002115/0.1778, allocations: 1.297 MB / 317.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.1778, allocations: 16 kB / 317.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.1778, allocations: 8 kB / 317.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.1778, allocations: 9.844 kB / 317.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003438/0.1813, allocations: 2.464 MB / 319.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.1813, allocations: 0 / 319.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006257/0.1819, allocations: 159.9 kB / 320.1 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001323/0.1832, allocations: 435.1 kB / 320.5 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.827e-05/0.1833, allocations: 31.92 kB / 320.5 MB, free: 9.535 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00599/0.1893, allocations: 9.921 MB / 330.5 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.1893, allocations: 7.969 kB / 330.5 MB, free: 15.14 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004047/0.1933, allocations: 1.92 MB / 332.4 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004546/0.1938, allocations: 147.4 kB / 332.5 MB, free: 13.01 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.1939, allocations: 20 kB / 332.6 MB, free: 12.99 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000507/0.1944, allocations: 39.98 kB / 332.6 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002869/0.1947, allocations: 104.7 kB / 332.7 MB, free: 12.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.799e-05/0.1948, allocations: 36 kB / 332.7 MB, free: 12.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004207/0.1952, allocations: 311.1 kB / 333 MB, free: 12.51 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1952, allocations: 0 / 333 MB, free: 12.51 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001463/0.1966, allocations: 312 kB / 333.3 MB, free: 12.21 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.0003557/0.197, allocations: 178.2 kB / 333.5 MB, free: 12.04 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003296/0.2003, allocations: 1.87 MB / 335.4 MB, free: 10.1 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.2003, allocations: 0 / 335.4 MB, free: 10.1 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002116/0.2024, allocations: 1.403 MB / 336.8 MB, free: 8.625 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006516/0.2031, allocations: 76.05 kB / 336.9 MB, free: 8.551 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004194/0.2073, allocations: 1.939 MB / 338.8 MB, free: 6.547 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005379/0.2078, allocations: 428 kB / 339.2 MB, free: 6.098 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000456/0.2083, allocations: 97.92 kB / 339.3 MB, free: 6 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.2084, allocations: 56.48 kB / 339.4 MB, free: 5.945 MB / 282.7 MB Notification: Performance of SimCode: time 1.332e-06/0.2084, allocations: 0 / 339.4 MB, free: 5.945 MB / 282.7 MB Notification: Performance of Templates: time 0.0233/0.2317, allocations: 11.11 MB / 350.5 MB, free: 10.96 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",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.155747486976907]