Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.001382/0.001382, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.00155/0.00155, allocations: 167.9 kB / 25.61 MB, free: 8.582 MB / 18.57 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.979/0.979, allocations: 177.1 MB / 206 MB, free: 4.484 MB / 186.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.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.1.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.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.889e-05/3.027e-05, allocations: 3.188 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.005852/0.005882, allocations: 6.277 MB / 280.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003884/0.009766, allocations: 2.535 MB / 283 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005/0.01027, allocations: 20 kB / 283 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.01195, allocations: 1.306 MB / 284.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001127/0.01307, allocations: 0.5315 MB / 284.9 MB, free: 9.711 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001507/0.01458, allocations: 1.195 MB / 286 MB, free: 8.512 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001249/0.01583, allocations: 1.109 MB / 287.2 MB, free: 7.395 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009265/0.01676, allocations: 0.7739 MB / 287.9 MB, free: 6.598 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006445/0.0174, allocations: 0.6548 MB / 288.6 MB, free: 5.941 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004966/0.0179, allocations: 426.8 kB / 289 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000121/0.01802, allocations: 96 kB / 289.1 MB, free: 5.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006504/0.01867, allocations: 403.4 kB / 289.5 MB, free: 5.035 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.01881, allocations: 243.1 kB / 289.7 MB, free: 4.797 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002659/0.01908, allocations: 359.1 kB / 290.1 MB, free: 4.445 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.02016, allocations: 1.094 MB / 291.2 MB, free: 3.348 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.02016, allocations: 0 / 291.2 MB, free: 3.348 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.02017, allocations: 3.938 kB / 291.2 MB, free: 3.344 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.02018, allocations: 4 kB / 291.2 MB, free: 3.34 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.002498/0.02268, allocations: 1.834 MB / 293 MB, free: 1.461 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.684e-05/0.0227, allocations: 19.98 kB / 293 MB, free: 1.441 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001794/0.0245, allocations: 0.6401 MB / 293.7 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004712/0.02497, allocations: 439.5 kB / 294.1 MB, free: 352 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.909e-05/0.02502, allocations: 86.59 kB / 294.2 MB, free: 264 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.02513, allocations: 124.1 kB / 294.3 MB, free: 140 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007481/0.02588, allocations: 0.6855 MB / 295 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.9e-05/0.02591, allocations: 7.953 kB / 295 MB, free: 15.4 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.314e-05/0.02597, allocations: 44 kB / 295 MB, free: 15.36 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.02599, allocations: 28 kB / 295.1 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005364/0.02652, allocations: 444 kB / 295.5 MB, free: 14.88 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003194/0.02972, allocations: 2.788 MB / 298.3 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008081/0.03053, allocations: 0.6616 MB / 299 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.03078, allocations: 243.1 kB / 299.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.579e-05/0.03085, allocations: 44.91 kB / 299.2 MB, free: 11.01 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003477/0.03119, allocations: 418.7 kB / 299.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of pre-optimization done (n=96): time 1.733e-06/0.0312, allocations: 0 / 299.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.003599/0.03479, allocations: 2.517 MB / 302.2 MB, free: 7.996 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/0.03486, allocations: 149.5 kB / 302.3 MB, free: 7.816 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002916/0.03516, allocations: 414.3 kB / 302.7 MB, free: 7.398 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.996e-05/0.03521, allocations: 49.7 kB / 302.8 MB, free: 7.344 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002212/0.03543, allocations: 491.6 kB / 303.2 MB, free: 6.855 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002548/0.03568, allocations: 444.1 kB / 303.7 MB, free: 6.418 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002238/0.03591, allocations: 232.4 kB / 303.9 MB, free: 6.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004839/0.03639, allocations: 0.5662 MB / 304.5 MB, free: 5.602 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.03659, allocations: 150.5 kB / 304.6 MB, free: 5.457 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.03693, allocations: 470.7 kB / 305.1 MB, free: 4.891 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005805/0.03751, allocations: 0.62 MB / 305.7 MB, free: 4.195 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.03751, allocations: 4 kB / 305.7 MB, free: 4.191 MB / 282.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.0011/0.03861, allocations: 0.9908 MB / 306.7 MB, free: 3.176 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.03863, allocations: 7.984 kB / 306.7 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.03863, allocations: 4 kB / 306.7 MB, free: 3.164 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006892/0.03932, allocations: 377.8 kB / 307.1 MB, free: 2.781 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004246/0.03975, allocations: 211.6 kB / 307.3 MB, free: 2.574 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004828/0.04458, allocations: 9.155 MB / 316.4 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.04488, allocations: 44.08 kB / 316.5 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/0.04493, allocations: 35.98 kB / 316.5 MB, free: 8.906 MB / 298.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.0002064/0.04513, allocations: 224.3 kB / 316.7 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.04525, allocations: 119.4 kB / 316.8 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001052/0.0463, allocations: 0.9096 MB / 317.8 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.04631, allocations: 16 kB / 317.8 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.04631, allocations: 8 kB / 317.8 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.709e-06/0.04632, allocations: 7.969 kB / 317.8 MB, free: 7.586 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.04884, allocations: 1.764 MB / 319.6 MB, free: 5.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.04884, allocations: 0 / 319.6 MB, free: 5.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003452/0.04919, allocations: 152 kB / 319.7 MB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006748/0.04986, allocations: 364.6 kB / 320.1 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.904e-05/0.04991, allocations: 24 kB / 320.1 MB, free: 5.207 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004537/0.05445, allocations: 8.794 MB / 328.9 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.05445, allocations: 11.95 kB / 328.9 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.05576, allocations: 1.266 MB / 330.2 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001748/0.05594, allocations: 143.4 kB / 330.3 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.951e-05/0.056, allocations: 28 kB / 330.3 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.05623, allocations: 35.98 kB / 330.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.05637, allocations: 104.7 kB / 330.5 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.563e-05/0.0564, allocations: 27.98 kB / 330.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001359/0.05654, allocations: 259 kB / 330.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.05654, allocations: 4 kB / 330.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007357/0.05728, allocations: 315.9 kB / 331 MB, free: 9.73 MB / 314.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.0001973/0.05747, allocations: 171 kB / 331.2 MB, free: 9.555 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.05892, allocations: 1.488 MB / 332.7 MB, free: 7.988 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.05892, allocations: 0 / 332.7 MB, free: 7.988 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007699/0.05969, allocations: 1.219 MB / 333.9 MB, free: 6.703 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.06001, allocations: 81.36 kB / 334 MB, free: 6.621 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.06201, allocations: 1.751 MB / 335.8 MB, free: 4.797 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001543/0.06217, allocations: 207.6 kB / 336 MB, free: 4.574 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002367/0.0624, allocations: 98.02 kB / 336.1 MB, free: 4.477 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.06261, allocations: 174.2 kB / 336.2 MB, free: 4.305 MB / 314.7 MB Notification: Performance of SimCode: time 6.51e-07/0.06261, allocations: 0 / 336.2 MB, free: 4.305 MB / 314.7 MB Notification: Performance of Templates: time 0.01563/0.07824, allocations: 12.54 MB / 348.8 MB, free: 7.863 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.324803797993809]