Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.001162/0.001162, allocations: 81.97 kB / 22.21 MB, free: 2.285 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.001262/0.001262, allocations: 168.6 kB / 25.61 MB, free: 8.875 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.9485/0.9485, allocations: 177.1 MB / 206.1 MB, free: 4.488 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.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.22e-05/1.377e-05, allocations: 3 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.002997/0.003011, allocations: 2.832 MB / 277 MB, free: 1.574 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001363/0.004374, allocations: 1.245 MB / 278.3 MB, free: 336 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.004501, allocations: 8.531 kB / 278.3 MB, free: 328 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002037/0.004704, allocations: 71.42 kB / 278.3 MB, free: 256 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003853/0.00509, allocations: 230.5 kB / 278.6 MB, free: 24 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000193/0.005283, allocations: 131.7 kB / 278.7 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000339/0.005622, allocations: 482.8 kB / 279.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.005741, allocations: 56.88 kB / 279.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/0.006011, allocations: 267.5 kB / 279.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.006205, allocations: 179.5 kB / 279.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.544e-05/0.00625, allocations: 40 kB / 279.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001977/0.006448, allocations: 159.8 kB / 279.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.798e-05/0.006506, allocations: 103.6 kB / 280 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.237e-05/0.006599, allocations: 135.7 kB / 280.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003699/0.006968, allocations: 394.6 kB / 280.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.006971, allocations: 4 kB / 280.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.006972, allocations: 0 / 280.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.006976, allocations: 0 / 280.5 MB, free: 14.11 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0008825/0.007858, allocations: 0.7374 MB / 281.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.905e-05/0.007887, allocations: 8.031 kB / 281.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.008025, allocations: 72.69 kB / 281.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002385/0.008263, allocations: 248.8 kB / 281.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.706e-05/0.00833, allocations: 102.3 kB / 281.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.775e-05/0.008418, allocations: 40.69 kB / 281.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002852/0.008703, allocations: 285 kB / 282 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.008714, allocations: 7.938 kB / 282 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.008734, allocations: 15.94 kB / 282 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.008741, allocations: 8 kB / 282 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.008927, allocations: 133.3 kB / 282.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009429/0.00987, allocations: 1.052 MB / 283.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.01024, allocations: 200.9 kB / 283.4 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.652e-05/0.01033, allocations: 83.31 kB / 283.4 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.01035, allocations: 8.5 kB / 283.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.01037, allocations: 41.33 kB / 283.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.01037, allocations: 0 / 283.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.003817/0.01419, allocations: 1.672 MB / 285.2 MB, free: 9.168 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.01422, allocations: 89.05 kB / 285.2 MB, free: 9.062 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000172/0.01439, allocations: 308.2 kB / 285.5 MB, free: 8.746 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.01442, allocations: 33.7 kB / 285.6 MB, free: 8.707 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.387e-05/0.0145, allocations: 215.3 kB / 285.8 MB, free: 8.492 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.891e-05/0.01458, allocations: 154.7 kB / 285.9 MB, free: 8.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.01468, allocations: 83.8 kB / 286 MB, free: 8.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.01481, allocations: 0.5156 MB / 286.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.333e-05/0.0149, allocations: 56.89 kB / 286.6 MB, free: 7.664 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.01504, allocations: 143.1 kB / 286.7 MB, free: 7.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/0.01529, allocations: 231.4 kB / 287 MB, free: 7.246 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.01529, allocations: 0 / 287 MB, free: 7.246 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003662/0.01566, allocations: 300.7 kB / 287.3 MB, free: 6.945 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.01567, allocations: 4 kB / 287.3 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.01568, allocations: 8.125 kB / 287.3 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.729e-06/0.01569, allocations: 8 kB / 287.3 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.01598, allocations: 111.9 kB / 287.4 MB, free: 6.816 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.01599, allocations: 3.938 kB / 287.4 MB, free: 6.812 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.01614, allocations: 27.98 kB / 287.4 MB, free: 6.785 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.01616, allocations: 15.98 kB / 287.4 MB, free: 6.77 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001131/0.01628, allocations: 180.5 kB / 287.6 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.068e-05/0.01636, allocations: 43.81 kB / 287.7 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007018/0.01706, allocations: 440.6 kB / 288.1 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.01706, allocations: 4 kB / 288.1 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.01707, allocations: 3.938 kB / 288.1 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.01707, allocations: 7.984 kB / 288.1 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.01843, allocations: 0.8773 MB / 289 MB, free: 5.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.01843, allocations: 0 / 289 MB, free: 5.168 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.01865, allocations: 87.89 kB / 289.1 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000672/0.01932, allocations: 223.3 kB / 289.3 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.01935, allocations: 11.94 kB / 289.3 MB, free: 4.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001965/0.02131, allocations: 2.384 MB / 291.7 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.02132, allocations: 0 / 291.7 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008688/0.02218, allocations: 0.7471 MB / 292.4 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.753e-05/0.02228, allocations: 63.75 kB / 292.5 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.02232, allocations: 12 kB / 292.5 MB, free: 1.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.02251, allocations: 28.02 kB / 292.5 MB, free: 1.477 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.775e-05/0.02257, allocations: 36.42 kB / 292.6 MB, free: 1.441 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.0226, allocations: 15.94 kB / 292.6 MB, free: 1.426 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000107/0.0227, allocations: 209.1 kB / 292.8 MB, free: 1.223 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0227, allocations: 0 / 292.8 MB, free: 1.223 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003587/0.02306, allocations: 115.9 kB / 292.9 MB, free: 1.109 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002151/0.02328, allocations: 155 kB / 293 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003008/0.02358, allocations: 239.6 kB / 293.3 MB, free: 0.707 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.02358, allocations: 0 / 293.3 MB, free: 0.707 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000303/0.02388, allocations: 348.6 kB / 293.6 MB, free: 360 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004456/0.02433, allocations: 44.47 kB / 293.7 MB, free: 316 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.02546, allocations: 0.7975 MB / 294.5 MB, free: 15.47 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.225e-05/0.02552, allocations: 98.61 kB / 294.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.02564, allocations: 50.88 kB / 294.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.02582, allocations: 130.2 kB / 294.7 MB, free: 15.17 MB / 282.7 MB Notification: Performance of SimCode: time 5.21e-07/0.02582, allocations: 0 / 294.7 MB, free: 15.17 MB / 282.7 MB Notification: Performance of Templates: time 0.008835/0.03466, allocations: 6.816 MB / 301.5 MB, free: 8.398 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.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.7697297567501664]