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.0009359/0.0009359, allocations: 78.19 kB / 21.42 MB, free: 3.082 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.001066/0.001066, allocations: 151.9 kB / 24.81 MB, free: 9.219 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 1.018/1.018, allocations: 173.4 MB / 201.4 MB, free: 9.203 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.363e-06/1.363e-06, allocations: 0 / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.331e-05, allocations: 2.312 kB / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003985/0.004009, allocations: 2.787 MB / 271.2 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.005408, allocations: 0.7321 MB / 271.9 MB, free: 2.645 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.005592, allocations: 8 kB / 271.9 MB, free: 2.637 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000232/0.005824, allocations: 71.31 kB / 272 MB, free: 2.566 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003064/0.00613, allocations: 91.19 kB / 272.1 MB, free: 2.477 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002354/0.006366, allocations: 107.8 kB / 272.2 MB, free: 2.371 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003261/0.006692, allocations: 402.3 kB / 272.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001564/0.006848, allocations: 91.28 kB / 272.7 MB, free: 1.887 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002951/0.007143, allocations: 235.5 kB / 272.9 MB, free: 1.656 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.007281, allocations: 127.6 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.932e-05/0.00732, allocations: 32 kB / 273.1 MB, free: 1.5 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.602e-05/0.007356, allocations: 32 kB / 273.1 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.784e-05/0.007404, allocations: 79.67 kB / 273.2 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.136e-05/0.007496, allocations: 115.7 kB / 273.3 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002596/0.007755, allocations: 251 kB / 273.5 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.007758, allocations: 8 kB / 273.5 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.007759, allocations: 0 / 273.5 MB, free: 1.023 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.391e-06/0.007764, allocations: 0 / 273.5 MB, free: 1.023 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.0006944/0.008459, allocations: 0.6596 MB / 274.2 MB, free: 336 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.008492, allocations: 8.031 kB / 274.2 MB, free: 328 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.158e-05/0.008563, allocations: 68.7 kB / 274.3 MB, free: 260 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002/0.008763, allocations: 212 kB / 274.5 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.008802, allocations: 25.03 kB / 274.5 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.008835, allocations: 28.38 kB / 274.5 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000266/0.009101, allocations: 215.2 kB / 274.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.009109, allocations: 4.188 kB / 274.8 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.009127, allocations: 8.375 kB / 274.8 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.009135, allocations: 11.94 kB / 274.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.009256, allocations: 100.5 kB / 274.9 MB, free: 15.63 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.01045, allocations: 0.925 MB / 275.8 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.01059, allocations: 90.98 kB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.001e-05/0.01063, allocations: 39.59 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.01065, allocations: 4 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.01067, allocations: 37.39 kB / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.473e-06/0.01067, allocations: 0 / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006919/0.01136, allocations: 366.7 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.7e-05/0.01139, allocations: 59.41 kB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.01156, allocations: 304 kB / 276.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.01158, allocations: 33.7 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.01174, allocations: 282.7 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.007e-05/0.0118, allocations: 71.38 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.793e-05/0.01189, allocations: 79.27 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.012, allocations: 0.5039 MB / 277.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/0.01205, allocations: 35.75 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.01216, allocations: 179.6 kB / 277.8 MB, free: 12.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.01233, allocations: 228.8 kB / 278.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.01233, allocations: 0 / 278.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002985/0.01263, allocations: 278.8 kB / 278.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.01264, allocations: 8.406 kB / 278.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.01265, allocations: 8 kB / 278.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002519/0.0129, allocations: 83.22 kB / 278.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.01305, allocations: 63.91 kB / 278.5 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/0.01466, allocations: 3.486 MB / 282 MB, free: 7.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.01477, allocations: 15.98 kB / 282 MB, free: 7.949 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.01479, allocations: 12 kB / 282 MB, free: 7.938 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 9.687e-05/0.01488, allocations: 180.5 kB / 282.2 MB, free: 7.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.641e-05/0.01492, allocations: 35.81 kB / 282.2 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.01495, allocations: 30.27 kB / 282.3 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.01495, allocations: 4.141 kB / 282.3 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.01496, allocations: 3.938 kB / 282.3 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.01496, allocations: 3.984 kB / 282.3 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.01513, allocations: 185.1 kB / 282.4 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.01513, allocations: 0 / 282.4 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.848e-05/0.01521, allocations: 39.91 kB / 282.5 MB, free: 7.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001903/0.0154, allocations: 71.31 kB / 282.6 MB, free: 7.352 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.01541, allocations: 8 kB / 282.6 MB, free: 7.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.0166, allocations: 3.486 MB / 286 MB, free: 3.625 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.0166, allocations: 0 / 286 MB, free: 3.625 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002297/0.01683, allocations: 325.9 kB / 286.4 MB, free: 3.281 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.161e-05/0.01685, allocations: 23.84 kB / 286.4 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.01687, allocations: 4 kB / 286.4 MB, free: 3.254 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.037e-05/0.01695, allocations: 16 kB / 286.4 MB, free: 3.238 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.693e-05/0.01699, allocations: 19.95 kB / 286.4 MB, free: 3.219 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-06/0.017, allocations: 8 kB / 286.4 MB, free: 3.211 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.477e-05/0.01709, allocations: 197 kB / 286.6 MB, free: 3.02 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01709, allocations: 0 / 286.6 MB, free: 3.02 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002596/0.01735, allocations: 72 kB / 286.7 MB, free: 2.949 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 9.31e-05/0.01744, allocations: 107.2 kB / 286.8 MB, free: 2.836 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003577/0.0178, allocations: 487 kB / 287.3 MB, free: 2.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.0178, allocations: 0 / 287.3 MB, free: 2.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.01799, allocations: 407.2 kB / 287.7 MB, free: 1.883 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.01821, allocations: 48.61 kB / 287.7 MB, free: 1.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000765/0.01898, allocations: 0.4987 MB / 288.2 MB, free: 1.309 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.471e-05/0.01903, allocations: 92.3 kB / 288.3 MB, free: 1.199 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.686e-05/0.01911, allocations: 30.38 kB / 288.3 MB, free: 1.172 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.047e-05/0.0192, allocations: 102.2 kB / 288.4 MB, free: 1.07 MB / 266.7 MB Notification: Performance of SimCode: time 8.51e-07/0.0192, allocations: 0 / 288.4 MB, free: 1.07 MB / 266.7 MB Notification: Performance of Templates: time 0.00533/0.02453, allocations: 3.011 MB / 291.5 MB, free: 14.09 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.729825370013714]