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.0009859/0.0009859, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0008961/0.0008961, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 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 1.002/1.002, allocations: 173.4 MB / 201.1 MB, free: 9.32 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.943e-06/1.943e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.623e-05/2.817e-05, allocations: 6.25 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003029/0.003057, allocations: 2.822 MB / 270.8 MB, free: 3.582 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.004192, allocations: 0.736 MB / 271.6 MB, free: 2.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.00433, allocations: 7.938 kB / 271.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002181/0.004548, allocations: 63.42 kB / 271.6 MB, free: 2.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002509/0.004799, allocations: 107.1 kB / 271.7 MB, free: 2.664 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002396/0.005039, allocations: 103.8 kB / 271.8 MB, free: 2.562 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003137/0.005352, allocations: 398.3 kB / 272.2 MB, free: 2.172 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.00552, allocations: 95.27 kB / 272.3 MB, free: 2.078 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002619/0.005781, allocations: 227.5 kB / 272.5 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.005923, allocations: 123.6 kB / 272.7 MB, free: 1.734 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.265e-05/0.005965, allocations: 39.98 kB / 272.7 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.412e-05/0.005999, allocations: 32 kB / 272.7 MB, free: 1.664 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.753e-05/0.006047, allocations: 75.69 kB / 272.8 MB, free: 1.59 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.733e-05/0.006134, allocations: 119.7 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000262/0.006396, allocations: 251 kB / 273.2 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.006398, allocations: 4 kB / 273.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.006399, allocations: 0 / 273.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.006404, allocations: 0 / 273.2 MB, free: 1.223 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.0007303/0.007135, allocations: 0.6635 MB / 273.8 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.007175, allocations: 8.031 kB / 273.8 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.911e-05/0.007264, allocations: 68.7 kB / 273.9 MB, free: 460 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.007509, allocations: 215.7 kB / 274.1 MB, free: 216 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.931e-05/0.007538, allocations: 25.03 kB / 274.1 MB, free: 188 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.00758, allocations: 28.38 kB / 274.2 MB, free: 160 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.007938, allocations: 231.3 kB / 274.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.007948, allocations: 192 / 274.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.007971, allocations: 16.38 kB / 274.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.007987, allocations: 11.94 kB / 274.4 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/0.008191, allocations: 131.8 kB / 274.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.009538, allocations: 0.9135 MB / 275.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.009721, allocations: 99.11 kB / 275.6 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.493e-05/0.009775, allocations: 35.67 kB / 275.6 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.009801, allocations: 4 kB / 275.6 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.009822, allocations: 41.33 kB / 275.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.122e-06/0.009823, allocations: 0 / 275.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008233/0.01065, allocations: 422.1 kB / 276 MB, free: 14.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.01067, allocations: 59.39 kB / 276.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.01088, allocations: 312.1 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.0109, allocations: 29.7 kB / 276.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.01102, allocations: 274.8 kB / 276.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.386e-05/0.01107, allocations: 83.31 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-05/0.01115, allocations: 71.31 kB / 276.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.01129, allocations: 0.5117 MB / 277.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.891e-05/0.01137, allocations: 47.75 kB / 277.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.01151, allocations: 179.7 kB / 277.6 MB, free: 12.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.01173, allocations: 236.8 kB / 277.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.01173, allocations: 0 / 277.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003467/0.01208, allocations: 311 kB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.01209, allocations: 4 kB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.0121, allocations: 4 kB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002947/0.01239, allocations: 79.47 kB / 278.2 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.01255, allocations: 63.89 kB / 278.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001483/0.01404, allocations: 3.535 MB / 281.8 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.01415, allocations: 24.05 kB / 281.8 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.01416, allocations: 12 kB / 281.8 MB, free: 7.906 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.0001088/0.01427, allocations: 184.4 kB / 282 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.609e-05/0.01431, allocations: 35.81 kB / 282.1 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003208/0.01463, allocations: 30.2 kB / 282.1 MB, free: 7.652 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.01463, allocations: 4 kB / 282.1 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.01464, allocations: 0 / 282.1 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.01464, allocations: 3.984 kB / 282.1 MB, free: 7.645 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.01484, allocations: 228.5 kB / 282.3 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.01484, allocations: 0 / 282.3 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.881e-05/0.01492, allocations: 35.92 kB / 282.4 MB, free: 7.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001975/0.01512, allocations: 79.3 kB / 282.4 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.01513, allocations: 3.938 kB / 282.4 MB, free: 7.262 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/0.01658, allocations: 3.527 MB / 286 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.01658, allocations: 3.938 kB / 286 MB, free: 3.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003859/0.01697, allocations: 339 kB / 286.3 MB, free: 3.121 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.652e-05/0.01701, allocations: 23.84 kB / 286.3 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.01703, allocations: 4 kB / 286.3 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.01717, allocations: 8 kB / 286.3 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.422e-05/0.01724, allocations: 23.95 kB / 286.4 MB, free: 3.062 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.01725, allocations: 4 kB / 286.4 MB, free: 3.059 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001659/0.01742, allocations: 209.1 kB / 286.6 MB, free: 2.855 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.01742, allocations: 0 / 286.6 MB, free: 2.855 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004592/0.01788, allocations: 72 kB / 286.6 MB, free: 2.785 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.0001127/0.01799, allocations: 111.2 kB / 286.7 MB, free: 2.668 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006068/0.0186, allocations: 499 kB / 287.2 MB, free: 2.141 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.0186, allocations: 0.8125 kB / 287.2 MB, free: 2.141 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003213/0.01892, allocations: 419.2 kB / 287.6 MB, free: 1.691 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.01929, allocations: 31.67 kB / 287.7 MB, free: 1.664 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.02044, allocations: 0.514 MB / 288.2 MB, free: 1.121 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.799e-05/0.02052, allocations: 92.3 kB / 288.3 MB, free: 1.012 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.02062, allocations: 26.28 kB / 288.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.422e-05/0.02068, allocations: 20.5 kB / 288.3 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.02069, allocations: 0 / 288.3 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of Templates: time 0.00713/0.02782, allocations: 2.808 MB / 291.1 MB, free: 14.19 MB / 282.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.9729089657776058]