Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009185/0.0009185, allocations: 80.8 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009137/0.0009137, allocations: 174.3 kB / 24.92 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9268/0.9268, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.661e-05/1.827e-05, allocations: 4.844 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003382/0.0034, allocations: 2.85 MB / 276.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.004586, allocations: 0.7863 MB / 277.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.004705, allocations: 11.94 kB / 277.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.004893, allocations: 71.36 kB / 277.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.005137, allocations: 103.2 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002201/0.005357, allocations: 107.7 kB / 277.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002883/0.005645, allocations: 398.3 kB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.005804, allocations: 93.95 kB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003566/0.00616, allocations: 239.5 kB / 278.1 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.006308, allocations: 127.6 kB / 278.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.759e-05/0.006345, allocations: 36 kB / 278.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.334e-05/0.006379, allocations: 32 kB / 278.3 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.78e-05/0.006427, allocations: 79.67 kB / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.191e-05/0.006509, allocations: 123.7 kB / 278.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000237/0.006746, allocations: 251 kB / 278.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.744e-06/0.006747, allocations: 0 / 278.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.006749, allocations: 0 / 278.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.006753, allocations: 0 / 278.8 MB, free: 11.95 MB / 266.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.0006193/0.007372, allocations: 0.5466 MB / 279.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.007404, allocations: 8.031 kB / 279.3 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.517e-05/0.007469, allocations: 48.89 kB / 279.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.00782, allocations: 190.1 kB / 279.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.007847, allocations: 29.03 kB / 279.6 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.007884, allocations: 32.38 kB / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002512/0.008135, allocations: 215.2 kB / 279.8 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.008146, allocations: 192 / 279.8 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.008165, allocations: 16.38 kB / 279.8 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.008172, allocations: 7.938 kB / 279.9 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001049/0.008277, allocations: 80.55 kB / 279.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008296/0.009107, allocations: 0.7562 MB / 280.7 MB, free: 9.918 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.009233, allocations: 80.66 kB / 280.8 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.548e-05/0.009269, allocations: 28.84 kB / 280.8 MB, free: 9.801 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.009288, allocations: 7.938 kB / 280.8 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.009309, allocations: 34.47 kB / 280.8 MB, free: 9.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.092e-06/0.00931, allocations: 3.938 kB / 280.8 MB, free: 9.746 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.000738/0.01005, allocations: 404.1 kB / 281.2 MB, free: 9.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.511e-05/0.01007, allocations: 51.41 kB / 281.3 MB, free: 9.277 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.01021, allocations: 252.8 kB / 281.5 MB, free: 9.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.01023, allocations: 25.7 kB / 281.6 MB, free: 8.988 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.308e-05/0.01031, allocations: 223.8 kB / 281.8 MB, free: 8.766 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.01035, allocations: 83.31 kB / 281.9 MB, free: 8.684 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.289e-05/0.01041, allocations: 61.62 kB / 281.9 MB, free: 8.617 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.513e-05/0.0105, allocations: 342.8 kB / 282.2 MB, free: 8.273 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.902e-05/0.01053, allocations: 27.98 kB / 282.3 MB, free: 8.246 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.194e-05/0.01062, allocations: 124.2 kB / 282.4 MB, free: 8.078 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.01076, allocations: 189.1 kB / 282.6 MB, free: 7.852 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.01076, allocations: 0 / 282.6 MB, free: 7.852 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000234/0.01099, allocations: 233.2 kB / 282.8 MB, free: 7.613 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.01101, allocations: 10.81 kB / 282.8 MB, free: 7.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.01101, allocations: 0 / 282.8 MB, free: 7.605 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002422/0.01125, allocations: 81.98 kB / 282.9 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.0114, allocations: 63.91 kB / 283 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.0125, allocations: 2.377 MB / 285.3 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.0126, allocations: 19.92 kB / 285.4 MB, free: 4.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.01262, allocations: 16 kB / 285.4 MB, free: 4.867 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.49e-05/0.0127, allocations: 129.7 kB / 285.5 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.01273, allocations: 23.97 kB / 285.5 MB, free: 4.707 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.075e-05/0.01277, allocations: 30.28 kB / 285.6 MB, free: 4.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.01277, allocations: 4.031 kB / 285.6 MB, free: 4.676 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.01278, allocations: 4 kB / 285.6 MB, free: 4.672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.01278, allocations: 7.922 kB / 285.6 MB, free: 4.664 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001364/0.01292, allocations: 153.8 kB / 285.7 MB, free: 4.496 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.01292, allocations: 0 / 285.7 MB, free: 4.496 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.472e-05/0.013, allocations: 35.92 kB / 285.8 MB, free: 4.461 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001655/0.01316, allocations: 65.64 kB / 285.8 MB, free: 4.391 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.01317, allocations: 8 kB / 285.8 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001104/0.01428, allocations: 2.369 MB / 288.2 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.01428, allocations: 0 / 288.2 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001764/0.01445, allocations: 248.3 kB / 288.4 MB, free: 1.574 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.917e-05/0.01447, allocations: 23.95 kB / 288.5 MB, free: 1.551 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.01449, allocations: 4 kB / 288.5 MB, free: 1.547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.199e-05/0.01456, allocations: 15.98 kB / 288.5 MB, free: 1.531 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.0146, allocations: 15.95 kB / 288.5 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.01461, allocations: 11.98 kB / 288.5 MB, free: 1.504 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.735e-05/0.01467, allocations: 78.78 kB / 288.6 MB, free: 1.426 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01467, allocations: 4.031 kB / 288.6 MB, free: 1.422 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000222/0.01489, allocations: 72 kB / 288.7 MB, free: 1.352 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 7.66e-05/0.01497, allocations: 88.34 kB / 288.7 MB, free: 1.258 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003029/0.01527, allocations: 358.4 kB / 289.1 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.01528, allocations: 12 kB / 289.1 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.01543, allocations: 294 kB / 289.4 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001635/0.0156, allocations: 32.42 kB / 289.4 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007131/0.01631, allocations: 0.5311 MB / 290 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.974e-05/0.01636, allocations: 88.31 kB / 290 MB, free: 15.86 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.098e-05/0.01643, allocations: 30.27 kB / 290.1 MB, free: 15.83 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.516e-05/0.01652, allocations: 87.34 kB / 290.2 MB, free: 15.75 MB / 282.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01652, allocations: 0 / 290.2 MB, free: 15.75 MB / 282.7 MB Notification: Performance of Templates: time 0.004646/0.02116, allocations: 2.918 MB / 293.1 MB, free: 12.86 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.529733701609075]