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.001515/0.001515, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001883/0.001883, allocations: 209.5 kB / 24.48 MB, free: 3.941 MB / 14.72 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 2.092/2.092, allocations: 230.6 MB / 258.2 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002008/0.002008, allocations: 55.92 kB / 379 MB, free: 2.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3316, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.01127/0.3428, allocations: 5.854 MB / 438.2 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006721/0.3495, allocations: 2.461 MB / 440.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001346/0.3509, allocations: 20 kB / 440.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004258/0.3551, allocations: 1.197 MB / 441.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002319/0.3575, allocations: 0.524 MB / 442.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003241/0.3607, allocations: 1.186 MB / 443.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.3624, allocations: 1.071 MB / 444.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001533/0.3639, allocations: 0.7819 MB / 445.4 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007117/0.3646, allocations: 458.3 kB / 445.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009307/0.3656, allocations: 0.5524 MB / 446.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001906/0.3658, allocations: 96 kB / 446.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.3669, allocations: 411.6 kB / 446.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002725/0.3671, allocations: 235.1 kB / 447.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005745/0.3677, allocations: 437.9 kB / 447.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002369/0.3701, allocations: 1.536 MB / 449.1 MB, free: 5.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3701, allocations: 4 kB / 449.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3701, allocations: 0 / 449.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.3701, allocations: 0 / 449.1 MB, free: 5.863 MB / 350.1 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.006358/0.3765, allocations: 1.691 MB / 450.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.3765, allocations: 12.03 kB / 450.8 MB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005206/0.3817, allocations: 475.8 kB / 451.3 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.3828, allocations: 449.2 kB / 451.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/0.3829, allocations: 86.22 kB / 451.8 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002472/0.3832, allocations: 112 kB / 451.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002832/0.386, allocations: 1.025 MB / 452.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.299e-05/0.386, allocations: 4 kB / 452.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001578/0.3862, allocations: 48 kB / 453 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.285e-05/0.3862, allocations: 24 kB / 453 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002788/0.389, allocations: 0.9535 MB / 454 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007998/0.397, allocations: 2.945 MB / 456.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00245/0.3995, allocations: 0.8211 MB / 457.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.4005, allocations: 388.3 kB / 458.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001398/0.4007, allocations: 32.97 kB / 458.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001277/0.402, allocations: 0.5058 MB / 458.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.907e-06/0.402, allocations: 4 kB / 458.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.01352/0.4155, allocations: 3.696 MB / 462.3 MB, free: 8.301 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.4156, allocations: 149.5 kB / 462.5 MB, free: 8.121 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000637/0.4162, allocations: 389.5 kB / 462.9 MB, free: 7.734 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.777e-05/0.4163, allocations: 45.7 kB / 462.9 MB, free: 7.684 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004496/0.4168, allocations: 437 kB / 463.3 MB, free: 7.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004969/0.4173, allocations: 440.1 kB / 463.8 MB, free: 6.816 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004637/0.4178, allocations: 214.8 kB / 464 MB, free: 6.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002262/0.418, allocations: 374.8 kB / 464.4 MB, free: 6.227 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/0.419, allocations: 346.4 kB / 464.7 MB, free: 5.887 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/0.4203, allocations: 0.5853 MB / 465.3 MB, free: 5.227 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00234/0.4226, allocations: 0.9343 MB / 466.2 MB, free: 4.238 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.4226, allocations: 0 / 466.2 MB, free: 4.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003845/0.4265, allocations: 1.359 MB / 467.6 MB, free: 2.859 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.4265, allocations: 15.92 kB / 467.6 MB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.4265, allocations: 4 kB / 467.6 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001329/0.4279, allocations: 355.2 kB / 467.9 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.4292, allocations: 199.7 kB / 468.1 MB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/0.4406, allocations: 7.894 MB / 476 MB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.4416, allocations: 39.98 kB / 476.1 MB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/0.4417, allocations: 47.98 kB / 476.1 MB, free: 9.91 MB / 382.1 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.0005988/0.4423, allocations: 265.6 kB / 476.4 MB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/0.4425, allocations: 67.58 kB / 476.4 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003752/0.4463, allocations: 1.278 MB / 477.7 MB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.987e-05/0.4463, allocations: 15.94 kB / 477.7 MB, free: 8.254 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/0.4463, allocations: 8 kB / 477.7 MB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.861e-05/0.4463, allocations: 7.969 kB / 477.7 MB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00583/0.4522, allocations: 2.213 MB / 480 MB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.4522, allocations: 0 / 480 MB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.4532, allocations: 151.8 kB / 480.1 MB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001191/0.4544, allocations: 329.5 kB / 480.4 MB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.293e-05/0.4545, allocations: 28 kB / 480.5 MB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/0.4657, allocations: 7.545 MB / 488 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.4657, allocations: 4 kB / 488 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004803/0.4705, allocations: 1.802 MB / 489.8 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005003/0.471, allocations: 147.5 kB / 489.9 MB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.4712, allocations: 24 kB / 490 MB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007284/0.4719, allocations: 35.98 kB / 490 MB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000295/0.4722, allocations: 116.7 kB / 490.1 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.817e-05/0.4723, allocations: 35.98 kB / 490.2 MB, free: 11.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004264/0.4727, allocations: 259.2 kB / 490.4 MB, free: 11.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4727, allocations: 0 / 490.4 MB, free: 11.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001792/0.4745, allocations: 315.9 kB / 490.7 MB, free: 10.74 MB / 398.1 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.0003954/0.4749, allocations: 175 kB / 490.9 MB, free: 10.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003824/0.4788, allocations: 1.549 MB / 492.4 MB, free: 8.957 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4788, allocations: 0 / 492.4 MB, free: 8.957 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002382/0.4811, allocations: 1.1 MB / 493.5 MB, free: 7.809 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008191/0.482, allocations: 73.41 kB / 493.6 MB, free: 7.738 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004954/0.4869, allocations: 1.934 MB / 495.5 MB, free: 5.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006551/0.4876, allocations: 436 kB / 496 MB, free: 5.301 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005802/0.4881, allocations: 98.02 kB / 496.1 MB, free: 5.203 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.4884, allocations: 63.41 kB / 496.1 MB, free: 5.141 MB / 398.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4884, allocations: 0 / 496.1 MB, free: 5.141 MB / 398.1 MB Notification: Performance of Templates: time 0.03181/0.5202, allocations: 12.62 MB / 0.4968 GB, free: 8.602 MB / 414.1 MB " [Timeout remaining time 659] 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.378280475997599]