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.001852/0.001852, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001821/0.001821, allocations: 153.1 kB / 24.27 MB, free: 168 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.544/1.544, allocations: 173.3 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] 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.844e-06/1.844e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.19e-05/3.374e-05, allocations: 2.312 kB / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004959/0.004993, allocations: 2.783 MB / 270.1 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.006516, allocations: 0.7321 MB / 270.8 MB, free: 3.203 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.006663, allocations: 4 kB / 270.8 MB, free: 3.199 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002473/0.00691, allocations: 59.39 kB / 270.9 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002942/0.007204, allocations: 111.1 kB / 271 MB, free: 3.031 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.007481, allocations: 103.8 kB / 271.1 MB, free: 2.93 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004801/0.007961, allocations: 406.3 kB / 271.5 MB, free: 2.531 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.00815, allocations: 79.36 kB / 271.6 MB, free: 2.453 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003926/0.008542, allocations: 247.3 kB / 271.8 MB, free: 2.211 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.008758, allocations: 119.7 kB / 271.9 MB, free: 2.094 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.662e-05/0.008834, allocations: 36 kB / 272 MB, free: 2.059 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.508e-05/0.008899, allocations: 32 kB / 272 MB, free: 2.027 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.605e-05/0.008985, allocations: 79.66 kB / 272.1 MB, free: 1.949 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001551/0.00914, allocations: 119.7 kB / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005309/0.009671, allocations: 406.7 kB / 272.6 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.009675, allocations: 0 / 272.6 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.009676, allocations: 0 / 272.6 MB, free: 1.434 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.009683, allocations: 0 / 272.6 MB, free: 1.434 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.001275/0.01096, allocations: 0.6827 MB / 273.3 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.011, allocations: 8.031 kB / 273.3 MB, free: 0.707 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.01112, allocations: 64.7 kB / 273.3 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003569/0.01148, allocations: 219.7 kB / 273.6 MB, free: 412 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.197e-05/0.01152, allocations: 33.03 kB / 273.6 MB, free: 376 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.868e-05/0.01158, allocations: 28.38 kB / 273.6 MB, free: 348 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005853/0.01217, allocations: 270.6 kB / 273.9 MB, free: 72 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.01218, allocations: 192 / 273.9 MB, free: 72 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.01221, allocations: 16.38 kB / 273.9 MB, free: 56 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.01223, allocations: 15.92 kB / 273.9 MB, free: 40 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005858/0.01281, allocations: 226.6 kB / 274.1 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001868/0.01468, allocations: 1.011 MB / 275.2 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003642/0.01505, allocations: 143.1 kB / 275.3 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.01521, allocations: 59.66 kB / 275.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.01524, allocations: 4 kB / 275.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.01528, allocations: 41.3 kB / 275.4 MB, free: 14.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.172e-06/0.01528, allocations: 4 kB / 275.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.001862/0.01714, allocations: 0.5333 MB / 275.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.01719, allocations: 51.41 kB / 276 MB, free: 13.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003941/0.01758, allocations: 360.1 kB / 276.3 MB, free: 13.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.01761, allocations: 33.64 kB / 276.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002208/0.01783, allocations: 282.8 kB / 276.6 MB, free: 13.17 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.852e-05/0.01791, allocations: 79.34 kB / 276.7 MB, free: 13.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.01804, allocations: 75.31 kB / 276.8 MB, free: 13.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002914/0.01833, allocations: 0.5196 MB / 277.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/0.01857, allocations: 87.73 kB / 277.4 MB, free: 12.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003616/0.01893, allocations: 231.6 kB / 277.6 MB, free: 12.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005708/0.0195, allocations: 316.8 kB / 277.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.0195, allocations: 4 kB / 277.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008222/0.02033, allocations: 391 kB / 278.3 MB, free: 11.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.02035, allocations: 8 kB / 278.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.02035, allocations: 0 / 278.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005568/0.02091, allocations: 91.45 kB / 278.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002973/0.02121, allocations: 63.91 kB / 278.5 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003156/0.02437, allocations: 3.645 MB / 282.1 MB, free: 7.273 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002333/0.0246, allocations: 16.03 kB / 282.1 MB, free: 7.258 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.067e-05/0.02463, allocations: 16 kB / 282.2 MB, free: 7.242 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.000212/0.02484, allocations: 200.4 kB / 282.4 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.326e-05/0.02491, allocations: 39.8 kB / 282.4 MB, free: 6.996 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.842e-05/0.02499, allocations: 30.22 kB / 282.4 MB, free: 6.969 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.025, allocations: 4 kB / 282.4 MB, free: 6.965 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.025, allocations: 3.938 kB / 282.4 MB, free: 6.961 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.02501, allocations: 7.984 kB / 282.4 MB, free: 6.953 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000388/0.0254, allocations: 272.5 kB / 282.7 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.0254, allocations: 0 / 282.7 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002757/0.02568, allocations: 31.97 kB / 282.7 MB, free: 6.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004286/0.0261, allocations: 83.25 kB / 282.8 MB, free: 6.531 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.02613, allocations: 11.94 kB / 282.8 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002917/0.02904, allocations: 3.625 MB / 286.5 MB, free: 2.645 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.02905, allocations: 4 kB / 286.5 MB, free: 2.641 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007074/0.02976, allocations: 414.9 kB / 286.9 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.452e-05/0.0298, allocations: 23.78 kB / 286.9 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.02983, allocations: 8 kB / 286.9 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.03, allocations: 8 kB / 286.9 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.727e-05/0.03008, allocations: 23.95 kB / 286.9 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.03009, allocations: 4 kB / 286.9 MB, free: 2.141 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002362/0.03033, allocations: 229.1 kB / 287.1 MB, free: 1.918 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03033, allocations: 4 kB / 287.2 MB, free: 1.914 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004016/0.03073, allocations: 72 kB / 287.2 MB, free: 1.844 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.0001377/0.03087, allocations: 103.2 kB / 287.3 MB, free: 1.734 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009774/0.03184, allocations: 0.5815 MB / 287.9 MB, free: 1.113 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.03185, allocations: 0 / 287.9 MB, free: 1.113 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005888/0.03243, allocations: 455.2 kB / 288.4 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.03278, allocations: 31.67 kB / 288.4 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.03386, allocations: 0.5419 MB / 288.9 MB, free: 32 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/0.03405, allocations: 164.8 kB / 289.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.03417, allocations: 22.3 kB / 289.1 MB, free: 15.83 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.877e-05/0.03424, allocations: 24.48 kB / 289.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.03424, allocations: 4 kB / 289.1 MB, free: 15.8 MB / 282.7 MB Notification: Performance of Templates: time 0.007818/0.04206, allocations: 2.794 MB / 291.9 MB, free: 13.04 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.5371990979183465]