Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.00131/0.00131, allocations: 79.59 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.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.001404/0.001404, allocations: 165.4 kB / 24.56 MB, free: 20 kB / 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.9697/0.9697, allocations: 177.1 MB / 205 MB, free: 5.621 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.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.235e-05/2.37e-05, allocations: 2.312 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004491/0.004514, allocations: 5.011 MB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.006722, allocations: 2.094 MB / 280.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.006883, allocations: 16 kB / 280.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001608/0.008491, allocations: 1.474 MB / 281.6 MB, free: 8.902 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005672/0.009058, allocations: 441.1 kB / 282 MB, free: 8.469 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.01015, allocations: 1.163 MB / 283.2 MB, free: 7.301 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005173/0.01067, allocations: 0.7625 MB / 283.9 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005449/0.01121, allocations: 0.5714 MB / 284.5 MB, free: 5.957 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003975/0.01161, allocations: 486.9 kB / 285 MB, free: 5.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005158/0.01212, allocations: 327.1 kB / 285.3 MB, free: 5.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.627e-05/0.01219, allocations: 68 kB / 285.4 MB, free: 5.094 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004309/0.01262, allocations: 399.3 kB / 285.8 MB, free: 4.703 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.922e-05/0.0127, allocations: 171.3 kB / 285.9 MB, free: 4.535 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.01285, allocations: 255.4 kB / 286.2 MB, free: 4.285 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007172/0.01357, allocations: 0.8993 MB / 287.1 MB, free: 3.383 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.01357, allocations: 0 / 287.1 MB, free: 3.383 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01357, allocations: 0 / 287.1 MB, free: 3.383 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.01358, allocations: 0 / 287.1 MB, free: 3.383 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.002179/0.01576, allocations: 1.509 MB / 288.6 MB, free: 1.832 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.793e-05/0.01578, allocations: 8.031 kB / 288.6 MB, free: 1.824 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001341/0.01713, allocations: 0.492 MB / 289.1 MB, free: 1.332 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.01725, allocations: 204.2 kB / 289.3 MB, free: 1.102 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.921e-05/0.01729, allocations: 62.38 kB / 289.3 MB, free: 1.043 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.684e-05/0.01738, allocations: 84.38 kB / 289.4 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008176/0.0182, allocations: 0.7045 MB / 290.1 MB, free: 236 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.01822, allocations: 8.188 kB / 290.1 MB, free: 228 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.641e-05/0.01826, allocations: 28.38 kB / 290.2 MB, free: 200 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.01828, allocations: 27.94 kB / 290.2 MB, free: 172 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09529/0.1136, allocations: 429.9 kB / 290.6 MB, free: 18.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002814/0.1164, allocations: 2.295 MB / 292.9 MB, free: 18.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005769/0.117, allocations: 427.8 kB / 293.3 MB, free: 18.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.1171, allocations: 133.7 kB / 293.5 MB, free: 18.03 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.663e-05/0.1172, allocations: 31.55 kB / 293.5 MB, free: 18.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.1172, allocations: 45.83 kB / 293.5 MB, free: 17.99 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.883e-06/0.1172, allocations: 0 / 293.5 MB, free: 17.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002263/0.1195, allocations: 1.324 MB / 294.9 MB, free: 17.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.813e-05/0.1195, allocations: 85.19 kB / 294.9 MB, free: 17.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.1197, allocations: 357.7 kB / 295.3 MB, free: 17.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/0.1198, allocations: 39.7 kB / 295.3 MB, free: 17.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.1199, allocations: 427.2 kB / 295.7 MB, free: 17.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.198e-05/0.12, allocations: 220 kB / 296 MB, free: 16.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.1201, allocations: 159.8 kB / 296.1 MB, free: 16.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.829e-05/0.1202, allocations: 0.5246 MB / 296.6 MB, free: 16.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.1204, allocations: 117.8 kB / 296.8 MB, free: 16.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.1207, allocations: 492.8 kB / 297.2 MB, free: 16.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005244/0.1212, allocations: 0.6265 MB / 297.9 MB, free: 15.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.1212, allocations: 2.969 kB / 297.9 MB, free: 15.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0007921/0.122, allocations: 0.6514 MB / 298.5 MB, free: 15.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.122, allocations: 8.625 kB / 298.5 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.122, allocations: 6.875 kB / 298.5 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.1223, allocations: 97.14 kB / 298.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004153/0.1228, allocations: 181.7 kB / 298.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000957/0.1237, allocations: 3.548 MB / 302.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.124, allocations: 50.97 kB / 302.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/0.124, allocations: 41.56 kB / 302.4 MB, free: 12.04 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.1242, allocations: 206.3 kB / 302.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.871e-05/0.1242, allocations: 59.86 kB / 302.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006391/0.1249, allocations: 491.9 kB / 303.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1249, allocations: 5.688 kB / 303.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.1249, allocations: 1.641 kB / 303.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.1249, allocations: 4.453 kB / 303.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.126, allocations: 1.022 MB / 304.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.126, allocations: 1.031 kB / 304.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002938/0.1263, allocations: 114.6 kB / 304.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002112/0.1265, allocations: 83.39 kB / 304.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.1265, allocations: 15 kB / 304.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007358/0.1272, allocations: 3.54 MB / 308 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1272, allocations: 1.281 kB / 308 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007336/0.128, allocations: 0.694 MB / 308.7 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.1281, allocations: 88.95 kB / 308.7 MB, free: 7.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.943e-05/0.1281, allocations: 16.11 kB / 308.8 MB, free: 7.238 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.1283, allocations: 28.7 kB / 308.8 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.135e-05/0.1284, allocations: 48.06 kB / 308.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/0.1284, allocations: 19 kB / 308.9 MB, free: 7.219 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000115/0.1285, allocations: 222.9 kB / 309.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1285, allocations: 0 / 309.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004453/0.129, allocations: 184 kB / 309.3 MB, free: 7.043 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001904/0.1292, allocations: 161.5 kB / 309.4 MB, free: 6.941 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006634/0.1298, allocations: 0.7603 MB / 310.2 MB, free: 6.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.1298, allocations: 4.062 kB / 310.2 MB, free: 6.516 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002941/0.1301, allocations: 0.5321 MB / 310.7 MB, free: 6.129 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.1304, allocations: 52.08 kB / 310.8 MB, free: 6.102 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.1319, allocations: 1.092 MB / 311.9 MB, free: 5.512 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.329e-05/0.1319, allocations: 144.8 kB / 312 MB, free: 5.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001971/0.1321, allocations: 81.55 kB / 312.1 MB, free: 5.402 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.1322, allocations: 52.95 kB / 312.1 MB, free: 5.391 MB / 266.7 MB Notification: Performance of SimCode: time 6.32e-07/0.1322, allocations: 0 / 312.1 MB, free: 5.391 MB / 266.7 MB Notification: Performance of Templates: time 0.007978/0.1402, allocations: 7.058 MB / 319.2 MB, free: 2.004 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.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: 2.770554937887937]