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.0009373/0.0009373, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009305/0.0009305, allocations: 141.7 kB / 24.89 MB, free: 8.777 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.9038/0.9038, allocations: 173.4 MB / 201.5 MB, free: 8.762 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.333e-06/1.333e-06, allocations: 0 / 268.5 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.527e-06/1.086e-05, allocations: 2.312 kB / 268.5 MB, free: 6.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.002597/0.002608, allocations: 2.798 MB / 271.3 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.003889, allocations: 0.7397 MB / 272 MB, free: 2.473 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.004027, allocations: 11.94 kB / 272 MB, free: 2.461 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001866/0.004214, allocations: 67.38 kB / 272.1 MB, free: 2.395 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002532/0.004467, allocations: 99.11 kB / 272.2 MB, free: 2.297 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.004732, allocations: 111.8 kB / 272.3 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000353/0.005085, allocations: 402.2 kB / 272.7 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.005258, allocations: 97.89 kB / 272.8 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003216/0.005579, allocations: 231.5 kB / 273 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001433/0.005722, allocations: 123.6 kB / 273.1 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.005768, allocations: 32 kB / 273.2 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.388e-05/0.005802, allocations: 36 kB / 273.2 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.826e-05/0.00586, allocations: 79.67 kB / 273.3 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.757e-05/0.005948, allocations: 119.7 kB / 273.4 MB, free: 1.086 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002553/0.006203, allocations: 259 kB / 273.6 MB, free: 0.832 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.006205, allocations: 0 / 273.6 MB, free: 0.832 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.71e-07/0.006205, allocations: 0 / 273.6 MB, free: 0.832 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.339e-06/0.00621, allocations: 0 / 273.6 MB, free: 0.832 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.0006884/0.006898, allocations: 0.5388 MB / 274.2 MB, free: 276 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.006933, allocations: 8.031 kB / 274.2 MB, free: 268 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.566e-05/0.006999, allocations: 48.91 kB / 274.2 MB, free: 220 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.007215, allocations: 177.2 kB / 274.4 MB, free: 16 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.333e-05/0.007258, allocations: 29.08 kB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.911e-05/0.007297, allocations: 28.38 kB / 274.5 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.007573, allocations: 219.2 kB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.007584, allocations: 4.188 kB / 274.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.007601, allocations: 12.38 kB / 274.7 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.007612, allocations: 7.938 kB / 274.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001114/0.007723, allocations: 88.48 kB / 274.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.00884, allocations: 0.7483 MB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.008968, allocations: 86.14 kB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.547e-05/0.009003, allocations: 24.86 kB / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.009023, allocations: 4 kB / 275.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.009044, allocations: 38.55 kB / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.009046, allocations: 0 / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007658/0.009811, allocations: 397.3 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.009839, allocations: 55.34 kB / 276.1 MB, free: 14.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.00998, allocations: 244.8 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.009996, allocations: 29.7 kB / 276.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.324e-05/0.01008, allocations: 208.1 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.1e-05/0.01012, allocations: 87.3 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.192e-05/0.01019, allocations: 69.64 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.326e-05/0.01028, allocations: 334.8 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.123e-05/0.01032, allocations: 31.77 kB / 277.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.141e-05/0.01041, allocations: 128 kB / 277.2 MB, free: 13 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.01056, allocations: 193.1 kB / 277.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.01056, allocations: 7.938 kB / 277.4 MB, free: 12.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002436/0.01081, allocations: 241.3 kB / 277.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.01082, allocations: 8 kB / 277.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01083, allocations: 4 kB / 277.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002469/0.01107, allocations: 69.86 kB / 277.7 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.01121, allocations: 67.91 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009894/0.0122, allocations: 2.361 MB / 280.2 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.0123, allocations: 31.92 kB / 280.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.01232, allocations: 12 kB / 280.2 MB, free: 9.773 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 8.083e-05/0.0124, allocations: 125.7 kB / 280.3 MB, free: 9.641 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.264e-05/0.01243, allocations: 27.97 kB / 280.4 MB, free: 9.613 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.921e-05/0.01246, allocations: 22.28 kB / 280.4 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.01246, allocations: 4 kB / 280.4 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.01247, allocations: 0 / 280.4 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.01247, allocations: 11.92 kB / 280.4 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001406/0.01261, allocations: 157.8 kB / 280.6 MB, free: 9.402 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.01261, allocations: 0 / 280.6 MB, free: 9.402 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.001e-05/0.01268, allocations: 31.98 kB / 280.6 MB, free: 9.371 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001575/0.01284, allocations: 69.59 kB / 280.7 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.01285, allocations: 7.984 kB / 280.7 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009855/0.01384, allocations: 2.361 MB / 283 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.01384, allocations: 3.938 kB / 283 MB, free: 6.754 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001719/0.01401, allocations: 245 kB / 283.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.925e-05/0.01403, allocations: 19.81 kB / 283.3 MB, free: 6.473 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.01404, allocations: 4 kB / 283.3 MB, free: 6.469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.016e-05/0.01411, allocations: 11.98 kB / 283.3 MB, free: 6.457 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.535e-05/0.01415, allocations: 15.97 kB / 283.3 MB, free: 6.441 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.01415, allocations: 4 kB / 283.3 MB, free: 6.438 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.808e-05/0.01421, allocations: 86.75 kB / 283.4 MB, free: 6.352 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.1e-08/0.01421, allocations: 0 / 283.4 MB, free: 6.352 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002126/0.01443, allocations: 76 kB / 283.5 MB, free: 6.277 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 6.358e-05/0.01449, allocations: 80.42 kB / 283.6 MB, free: 6.188 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002796/0.01477, allocations: 369.5 kB / 283.9 MB, free: 5.801 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.01478, allocations: 4 kB / 283.9 MB, free: 5.797 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.01492, allocations: 294 kB / 284.2 MB, free: 5.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001518/0.01507, allocations: 32.48 kB / 284.2 MB, free: 5.449 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006507/0.01572, allocations: 0.5242 MB / 284.8 MB, free: 4.898 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.375e-05/0.01578, allocations: 96.3 kB / 284.9 MB, free: 4.785 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.961e-05/0.01585, allocations: 26.28 kB / 284.9 MB, free: 4.762 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.065e-05/0.01593, allocations: 83.36 kB / 285 MB, free: 4.68 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01593, allocations: 4 kB / 285 MB, free: 4.676 MB / 266.7 MB Notification: Performance of Templates: time 0.004494/0.02042, allocations: 2.915 MB / 287.9 MB, free: 1.793 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.704261464998126]