Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 110.7 kB / 16.51 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 46.11 kB / 300 MB, free: 6.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08558/0.0867, allocations: 49.44 MB / 349.4 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004047/0.09078, allocations: 2.854 MB / 352.3 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.09279, allocations: 1.254 MB / 353.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002354/0.09305, allocations: 4 kB / 353.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002751/0.09333, allocations: 55.61 kB / 353.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005629/0.09392, allocations: 195 kB / 353.8 MB, free: 440 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.09419, allocations: 103.8 kB / 353.9 MB, free: 336 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000467/0.09467, allocations: 438.9 kB / 354.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.09483, allocations: 73.36 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003032/0.09515, allocations: 163.5 kB / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003092/0.09547, allocations: 211.1 kB / 354.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.044e-05/0.09555, allocations: 28 kB / 354.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003131/0.09586, allocations: 143.9 kB / 354.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8e-05/0.09595, allocations: 71.72 kB / 355 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.09613, allocations: 175.1 kB / 355.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000509/0.09665, allocations: 490.4 kB / 355.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.09666, allocations: 3.938 kB / 355.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.22e-07/0.09667, allocations: 0 / 355.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.09668, allocations: 0 / 355.6 MB, free: 14.56 MB / 302.1 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.001674/0.09836, allocations: 0.7094 MB / 356.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.09841, allocations: 8.031 kB / 356.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.09852, allocations: 40.5 kB / 356.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.09897, allocations: 333.2 kB / 356.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.163e-05/0.09905, allocations: 54.83 kB / 356.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001608/0.09922, allocations: 36.48 kB / 356.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006355/0.09986, allocations: 320.5 kB / 357.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.09989, allocations: 3.938 kB / 357.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.5e-05/0.09993, allocations: 12 kB / 357.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.09995, allocations: 4 kB / 357.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006765/0.1006, allocations: 302 kB / 357.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.1024, allocations: 1.163 MB / 358.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006018/0.1031, allocations: 289 kB / 358.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003361/0.1034, allocations: 165.6 kB / 359 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.1034, allocations: 8 kB / 359 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.1035, allocations: 42.5 kB / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.1035, allocations: 0 / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.009519/0.113, allocations: 2.41 MB / 361.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.1131, allocations: 81.11 kB / 361.6 MB, free: 8.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/0.1134, allocations: 288.9 kB / 361.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.1134, allocations: 33.7 kB / 361.9 MB, free: 7.973 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.592e-05/0.1135, allocations: 172.4 kB / 362 MB, free: 7.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.1137, allocations: 141.9 kB / 362.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.1138, allocations: 86.02 kB / 362.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1139, allocations: 338.8 kB / 362.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003933/0.1143, allocations: 160.8 kB / 362.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004391/0.1148, allocations: 230.6 kB / 363 MB, free: 6.828 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000807/0.1156, allocations: 407.6 kB / 363.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1156, allocations: 0 / 363.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001031/0.1167, allocations: 492.2 kB / 363.9 MB, free: 5.922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1167, allocations: 7.938 kB / 363.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.1167, allocations: 0 / 363.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.1167, allocations: 4 kB / 363.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006106/0.1173, allocations: 124 kB / 364 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.1174, allocations: 4 kB / 364 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003881/0.1177, allocations: 31.92 kB / 364 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.898e-05/0.1178, allocations: 19.98 kB / 364 MB, free: 5.734 MB / 302.1 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.000178/0.118, allocations: 165.5 kB / 364.2 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.53e-05/0.1181, allocations: 23.72 kB / 364.2 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001858/0.1199, allocations: 0.6603 MB / 364.9 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.12, allocations: 7.938 kB / 364.9 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.12, allocations: 0 / 364.9 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.036e-06/0.12, allocations: 3.984 kB / 364.9 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003193/0.1232, allocations: 1.275 MB / 366.2 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.1232, allocations: 0 / 366.2 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004471/0.1237, allocations: 87.89 kB / 366.3 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001646/0.1253, allocations: 272.5 kB / 366.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.045e-05/0.1254, allocations: 8 kB / 366.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003742/0.1291, allocations: 2.221 MB / 368.8 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.1291, allocations: 3.984 kB / 368.8 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.149/0.2782, allocations: 0.9968 MB / 369.8 MB, free: 25.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/0.2784, allocations: 154.7 kB / 369.9 MB, free: 25.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.257e-05/0.2785, allocations: 7.422 kB / 369.9 MB, free: 25.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004852/0.279, allocations: 27.16 kB / 369.9 MB, free: 25.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.2791, allocations: 42.23 kB / 370 MB, free: 25.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.458e-05/0.2791, allocations: 14.83 kB / 370 MB, free: 25.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000217/0.2794, allocations: 209.1 kB / 370.2 MB, free: 25.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2794, allocations: 1.188 kB / 370.2 MB, free: 25.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005488/0.2799, allocations: 117.8 kB / 370.3 MB, free: 25.59 MB / 302.1 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.0002343/0.2802, allocations: 141.2 kB / 370.5 MB, free: 25.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009494/0.2811, allocations: 429 kB / 370.9 MB, free: 25.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2811, allocations: 3.781 kB / 370.9 MB, free: 25.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006437/0.2818, allocations: 383.7 kB / 371.3 MB, free: 25.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005376/0.2823, allocations: 43.31 kB / 371.3 MB, free: 25.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.2839, allocations: 1.102 MB / 372.4 MB, free: 24.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.2842, allocations: 0.7866 MB / 373.2 MB, free: 24.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002365/0.2844, allocations: 43.81 kB / 373.2 MB, free: 24.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.2846, allocations: 38.45 kB / 373.3 MB, free: 24.16 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2846, allocations: 0 / 373.3 MB, free: 24.16 MB / 302.1 MB Notification: Performance of Templates: time 0.01035/0.295, allocations: 5.922 MB / 379.2 MB, free: 23.44 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches