Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.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.0009053/0.0009053, 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.0009172/0.0009172, allocations: 165.4 kB / 24.56 MB, free: 16 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.9723/0.9723, allocations: 177.2 MB / 205 MB, free: 5.289 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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.138e-05/3.353e-05, allocations: 5.125 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003273/0.003306, allocations: 2.83 MB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.004565, allocations: 0.771 MB / 276.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.004706, allocations: 11.94 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002027/0.004908, allocations: 59.44 kB / 276.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000253/0.005161, allocations: 107.1 kB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.005429, allocations: 107.8 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003614/0.005791, allocations: 402.3 kB / 277.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.005966, allocations: 91.31 kB / 277.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003842/0.00635, allocations: 239.5 kB / 277.6 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.006494, allocations: 123.7 kB / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.049e-05/0.006534, allocations: 35.94 kB / 277.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.98e-05/0.006574, allocations: 39.94 kB / 277.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.57e-05/0.00662, allocations: 75.72 kB / 277.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.631e-05/0.006706, allocations: 119.7 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.006997, allocations: 255 kB / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.575e-06/0.007005, allocations: 0 / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.007006, allocations: 0 / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.007013, allocations: 0 / 278.2 MB, free: 12.12 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001134/0.008148, allocations: 0.6713 MB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.008186, allocations: 8.031 kB / 278.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.751e-05/0.008273, allocations: 60.7 kB / 279 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003212/0.008595, allocations: 224.8 kB / 279.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.127e-05/0.008636, allocations: 25.03 kB / 279.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.69e-05/0.008693, allocations: 36.36 kB / 279.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003938/0.009086, allocations: 231.3 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.009098, allocations: 192 / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.009122, allocations: 20.3 kB / 279.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.009135, allocations: 11.94 kB / 279.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.009333, allocations: 123.8 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.01064, allocations: 0.9096 MB / 280.5 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002133/0.01085, allocations: 99.11 kB / 280.6 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.146e-05/0.01092, allocations: 39.58 kB / 280.7 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.01095, allocations: 7.938 kB / 280.7 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.01098, allocations: 37.38 kB / 280.7 MB, free: 9.461 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.633e-06/0.01098, allocations: 0 / 280.7 MB, free: 9.461 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009487/0.01193, allocations: 422.8 kB / 281.1 MB, free: 9.035 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.01196, allocations: 55.41 kB / 281.2 MB, free: 8.969 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.01218, allocations: 320.1 kB / 281.5 MB, free: 8.641 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.01219, allocations: 29.7 kB / 281.5 MB, free: 8.605 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.01233, allocations: 278.8 kB / 281.8 MB, free: 8.328 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.049e-05/0.01239, allocations: 71.39 kB / 281.9 MB, free: 8.258 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.0125, allocations: 75.3 kB / 281.9 MB, free: 8.176 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.01267, allocations: 0.5157 MB / 282.4 MB, free: 7.648 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.237e-05/0.01275, allocations: 39.97 kB / 282.5 MB, free: 7.609 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.0129, allocations: 171.8 kB / 282.7 MB, free: 7.379 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.01314, allocations: 232.8 kB / 282.9 MB, free: 7.094 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01314, allocations: 3.938 kB / 282.9 MB, free: 7.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003805/0.01352, allocations: 307.1 kB / 283.2 MB, free: 6.777 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.01354, allocations: 4 kB / 283.2 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.01354, allocations: 7.984 kB / 283.2 MB, free: 6.766 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003104/0.01385, allocations: 87.33 kB / 283.3 MB, free: 6.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001756/0.01403, allocations: 71.84 kB / 283.4 MB, free: 6.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.01573, allocations: 3.527 MB / 286.9 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.01587, allocations: 24.05 kB / 286.9 MB, free: 2.805 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.01589, allocations: 12 kB / 286.9 MB, free: 2.793 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001141/0.016, allocations: 180.5 kB / 287.1 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.924e-05/0.01604, allocations: 35.81 kB / 287.1 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.198e-05/0.01608, allocations: 34.2 kB / 287.2 MB, free: 2.535 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.01608, allocations: 8 kB / 287.2 MB, free: 2.527 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.01609, allocations: 0 / 287.2 MB, free: 2.527 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.01609, allocations: 0 / 287.2 MB, free: 2.527 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.01631, allocations: 240.5 kB / 287.4 MB, free: 2.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.01631, allocations: 0 / 287.4 MB, free: 2.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.409e-05/0.01641, allocations: 31.92 kB / 287.4 MB, free: 2.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002087/0.01661, allocations: 75.3 kB / 287.5 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.01663, allocations: 11.94 kB / 287.5 MB, free: 2.133 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1122/0.1288, allocations: 3.509 MB / 291 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1288, allocations: 0 / 291 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003855/0.1292, allocations: 346.5 kB / 291.4 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.029e-05/0.1292, allocations: 23.58 kB / 291.4 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.1292, allocations: 3 kB / 291.4 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.1294, allocations: 10.61 kB / 291.4 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.196e-05/0.1294, allocations: 21.03 kB / 291.4 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.1294, allocations: 5.312 kB / 291.4 MB, free: 23.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001338/0.1296, allocations: 212 kB / 291.6 MB, free: 23.24 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1296, allocations: 0 / 291.6 MB, free: 23.24 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003177/0.1299, allocations: 71.66 kB / 291.7 MB, free: 23.24 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.000102/0.13, allocations: 105.8 kB / 291.8 MB, free: 23.15 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005246/0.1305, allocations: 0.4943 MB / 292.3 MB, free: 22.8 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1305, allocations: 1.125 kB / 292.3 MB, free: 22.8 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.1307, allocations: 417.4 kB / 292.7 MB, free: 22.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/0.131, allocations: 35.86 kB / 292.7 MB, free: 22.45 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.132, allocations: 0.5118 MB / 293.3 MB, free: 22.16 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.892e-05/0.1321, allocations: 90.86 kB / 293.3 MB, free: 22.09 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.824e-05/0.1322, allocations: 30.64 kB / 293.4 MB, free: 22.09 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.05e-05/0.1322, allocations: 23.08 kB / 293.4 MB, free: 22.08 MB / 266.7 MB Notification: Performance of SimCode: time 1.713e-06/0.1322, allocations: 0 / 293.4 MB, free: 22.08 MB / 266.7 MB Notification: Performance of Templates: time 0.006498/0.1387, allocations: 2.935 MB / 296.3 MB, free: 21.87 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/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.7409784588962793]