Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.0009411/0.0009411, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.0008724/0.0008724, allocations: 140.4 kB / 25.59 MB, free: 8.906 MB / 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 0.9343/0.9343, allocations: 173.4 MB / 202.3 MB, free: 8.293 MB / 186.7 MB " [Timeout remaining time 179] 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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.633e-05/2.799e-05, allocations: 2.312 kB / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004431/0.004459, allocations: 2.789 MB / 272 MB, free: 6.977 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000978/0.005437, allocations: 0.7249 MB / 272.7 MB, free: 6.25 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.005565, allocations: 8 kB / 272.7 MB, free: 6.242 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001761/0.005741, allocations: 73.27 kB / 272.8 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.005943, allocations: 107.1 kB / 272.9 MB, free: 6.066 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001861/0.006129, allocations: 97.83 kB / 273 MB, free: 5.973 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003033/0.006432, allocations: 398.3 kB / 273.4 MB, free: 5.582 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.006586, allocations: 95.88 kB / 273.5 MB, free: 5.488 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002812/0.006868, allocations: 232.7 kB / 273.7 MB, free: 5.262 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001314/0.006999, allocations: 123.6 kB / 273.8 MB, free: 5.141 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.655e-05/0.007035, allocations: 32 kB / 273.9 MB, free: 5.109 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.225e-05/0.007068, allocations: 33.19 kB / 273.9 MB, free: 5.078 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.25e-05/0.00712, allocations: 83.67 kB / 274 MB, free: 4.996 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.967e-05/0.0072, allocations: 115.7 kB / 274.1 MB, free: 4.883 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002267/0.007427, allocations: 256.5 kB / 274.3 MB, free: 4.633 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.00743, allocations: 0 / 274.3 MB, free: 4.633 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.007432, allocations: 0 / 274.3 MB, free: 4.633 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.007436, allocations: 4 kB / 274.3 MB, free: 4.629 MB / 250.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.0007649/0.008201, allocations: 0.6693 MB / 275 MB, free: 3.926 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.008232, allocations: 8.031 kB / 275 MB, free: 3.918 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.191e-05/0.008304, allocations: 64.7 kB / 275.1 MB, free: 3.855 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002085/0.008512, allocations: 216 kB / 275.3 MB, free: 3.617 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.008539, allocations: 21.03 kB / 275.3 MB, free: 3.594 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/0.008572, allocations: 32.38 kB / 275.3 MB, free: 3.562 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.008824, allocations: 203.3 kB / 275.5 MB, free: 3.359 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.008833, allocations: 192 / 275.5 MB, free: 3.359 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.008853, allocations: 16.38 kB / 275.6 MB, free: 3.344 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.008862, allocations: 15.94 kB / 275.6 MB, free: 3.328 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.008979, allocations: 96.48 kB / 275.7 MB, free: 3.238 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.01003, allocations: 0.9172 MB / 276.6 MB, free: 2.25 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001491/0.01018, allocations: 91.09 kB / 276.7 MB, free: 2.148 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.051e-05/0.01022, allocations: 37.69 kB / 276.7 MB, free: 2.109 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.01024, allocations: 4 kB / 276.7 MB, free: 2.105 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.01026, allocations: 45.38 kB / 276.8 MB, free: 2.051 MB / 250.7 MB Notification: Performance of pre-optimization done (n=17): time 1.092e-06/0.01026, allocations: 0 / 276.8 MB, free: 2.051 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007159/0.01098, allocations: 362.4 kB / 277.1 MB, free: 1.684 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.211e-05/0.01101, allocations: 55.39 kB / 277.2 MB, free: 1.617 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/0.01118, allocations: 311.9 kB / 277.5 MB, free: 1.297 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.01119, allocations: 33.64 kB / 277.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.0113, allocations: 278.8 kB / 277.8 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.254e-05/0.01134, allocations: 83.31 kB / 277.9 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.784e-05/0.01141, allocations: 71.28 kB / 277.9 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.01153, allocations: 0.5078 MB / 278.4 MB, free: 308 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.265e-05/0.01159, allocations: 35.75 kB / 278.5 MB, free: 272 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.01169, allocations: 179.7 kB / 278.6 MB, free: 28 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/0.01187, allocations: 222.8 kB / 278.9 MB, free: 15.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.01187, allocations: 0 / 278.9 MB, free: 15.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002991/0.01217, allocations: 283.1 kB / 279.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.01219, allocations: 12 kB / 279.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.01219, allocations: 4 kB / 279.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002445/0.01244, allocations: 71.31 kB / 279.2 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.01259, allocations: 71.91 kB / 279.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/0.01421, allocations: 3.483 MB / 282.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.01433, allocations: 19.98 kB / 282.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.01434, allocations: 8 kB / 282.8 MB, free: 11.55 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.000105/0.01445, allocations: 188.5 kB / 283 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.132e-05/0.01449, allocations: 31.81 kB / 283 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.606e-05/0.01454, allocations: 30.27 kB / 283 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.01454, allocations: 4 kB / 283.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.01455, allocations: 3.938 kB / 283.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.01455, allocations: 3.984 kB / 283.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.01475, allocations: 185.1 kB / 283.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.01475, allocations: 0 / 283.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.825e-05/0.01484, allocations: 35.98 kB / 283.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002011/0.01504, allocations: 79.36 kB / 283.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.01505, allocations: 0 / 283.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.01628, allocations: 3.482 MB / 286.8 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.01628, allocations: 0 / 286.8 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004881/0.01677, allocations: 325 kB / 287.2 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.368e-05/0.01679, allocations: 31.78 kB / 287.2 MB, free: 6.871 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.01681, allocations: 4.062 kB / 287.2 MB, free: 6.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.926e-05/0.0169, allocations: 11.94 kB / 287.2 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.01694, allocations: 23.95 kB / 287.2 MB, free: 6.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.01695, allocations: 7.828 kB / 287.2 MB, free: 6.828 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.607e-05/0.01703, allocations: 201.1 kB / 287.4 MB, free: 6.633 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01703, allocations: 0 / 287.4 MB, free: 6.633 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002479/0.01728, allocations: 76 kB / 287.5 MB, free: 6.559 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 8.023e-05/0.01736, allocations: 99.25 kB / 287.6 MB, free: 6.453 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003478/0.01771, allocations: 487 kB / 288.1 MB, free: 5.938 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.01771, allocations: 0 / 288.1 MB, free: 5.938 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.0179, allocations: 414.3 kB / 288.5 MB, free: 5.496 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.01813, allocations: 32.48 kB / 288.5 MB, free: 5.465 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007664/0.01889, allocations: 0.5023 MB / 289 MB, free: 4.934 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.55e-05/0.01895, allocations: 92.3 kB / 289.1 MB, free: 4.824 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.883e-05/0.01903, allocations: 30.33 kB / 289.1 MB, free: 4.797 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.527e-05/0.01912, allocations: 102.2 kB / 289.2 MB, free: 4.695 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.01912, allocations: 0 / 289.2 MB, free: 4.695 MB / 266.7 MB Notification: Performance of Templates: time 0.004985/0.02411, allocations: 3.073 MB / 292.3 MB, free: 1.66 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.674492327030748]