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.001502/0.001503, allocations: 110 kB / 17.06 MB, free: 6.02 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.001663/0.001664, allocations: 191 kB / 18 MB, free: 5.109 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.389/1.389, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 47.94 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3078, allocations: 49.43 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004339/0.3121, allocations: 2.823 MB / 403.5 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001967/0.3141, allocations: 1.23 MB / 404.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.3143, allocations: 4 kB / 404.8 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002871/0.3146, allocations: 67.36 kB / 404.8 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005364/0.3152, allocations: 234.7 kB / 405.1 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.3154, allocations: 111.8 kB / 405.2 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004147/0.3158, allocations: 466.9 kB / 405.6 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.316, allocations: 96.48 kB / 405.7 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.3163, allocations: 183.4 kB / 405.9 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002769/0.3166, allocations: 223.1 kB / 406.1 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.891e-05/0.3166, allocations: 40 kB / 406.2 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000275/0.3169, allocations: 163.9 kB / 406.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.803e-05/0.317, allocations: 95.66 kB / 406.4 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.3172, allocations: 183.2 kB / 406.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005504/0.3177, allocations: 0.4996 MB / 407.1 MB, free: 2.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3178, allocations: 8 kB / 407.1 MB, free: 2.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3178, allocations: 0 / 407.1 MB, free: 2.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.697e-06/0.3178, allocations: 0 / 407.1 MB, free: 2.441 MB / 318.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.001556/0.3193, allocations: 0.7015 MB / 407.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.3194, allocations: 8.031 kB / 407.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.314e-05/0.3195, allocations: 40.56 kB / 407.9 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004647/0.3199, allocations: 329.2 kB / 408.2 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.189e-05/0.32, allocations: 50.83 kB / 408.2 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.3202, allocations: 40.48 kB / 408.3 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005642/0.3208, allocations: 324.5 kB / 408.6 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.3208, allocations: 0 / 408.6 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.42e-05/0.3208, allocations: 12 kB / 408.6 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3208, allocations: 7.938 kB / 408.6 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006359/0.3215, allocations: 298 kB / 408.9 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001697/0.3232, allocations: 1.156 MB / 410.1 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005746/0.3238, allocations: 301 kB / 410.3 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.3241, allocations: 165.6 kB / 410.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.293e-05/0.3241, allocations: 7.984 kB / 410.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.3242, allocations: 42.48 kB / 410.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.483e-06/0.3242, allocations: 0 / 410.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009888/0.3341, allocations: 2.405 MB / 413 MB, free: 12.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.3341, allocations: 81.11 kB / 413 MB, free: 12.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.3345, allocations: 289 kB / 413.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.3345, allocations: 29.7 kB / 413.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3346, allocations: 176.3 kB / 413.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.3348, allocations: 145.8 kB / 413.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.3349, allocations: 82.09 kB / 413.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.335, allocations: 342.8 kB / 414.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.3354, allocations: 156.8 kB / 414.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004039/0.3358, allocations: 234.6 kB / 414.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007689/0.3366, allocations: 407.5 kB / 414.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3366, allocations: 0 / 414.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000955/0.3376, allocations: 488.4 kB / 415.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3376, allocations: 4 kB / 415.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.3376, allocations: 4 kB / 415.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.3376, allocations: 7.938 kB / 415.4 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/0.3382, allocations: 119.8 kB / 415.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.3382, allocations: 4 kB / 415.5 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003741/0.3386, allocations: 40 kB / 415.5 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.628e-05/0.3387, allocations: 15.98 kB / 415.5 MB, free: 9.621 MB / 334.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.0001662/0.3388, allocations: 161.6 kB / 415.7 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.817e-05/0.3389, allocations: 31.62 kB / 415.7 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001788/0.3407, allocations: 0.6486 MB / 416.4 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.3407, allocations: 8 kB / 416.4 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.3408, allocations: 4 kB / 416.4 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.3408, allocations: 3.984 kB / 416.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/0.3438, allocations: 1.279 MB / 417.7 MB, free: 7.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.3438, allocations: 0 / 417.7 MB, free: 7.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004338/0.3443, allocations: 95.88 kB / 417.8 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001561/0.3458, allocations: 268.6 kB / 418 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.799e-05/0.3459, allocations: 11.98 kB / 418 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003772/0.3497, allocations: 2.435 MB / 420.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.3497, allocations: 4.031 kB / 420.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002186/0.3519, allocations: 1.004 MB / 421.5 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.3521, allocations: 152.6 kB / 421.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.3521, allocations: 8 kB / 421.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.3526, allocations: 24.17 kB / 421.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.3527, allocations: 44.31 kB / 421.7 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.3527, allocations: 15.94 kB / 421.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002214/0.353, allocations: 216.5 kB / 421.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.353, allocations: 0 / 421.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005782/0.3536, allocations: 116 kB / 422 MB, free: 2.848 MB / 334.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.0002753/0.3539, allocations: 143.1 kB / 422.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.3549, allocations: 433.9 kB / 422.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3549, allocations: 0 / 422.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006821/0.3556, allocations: 385.3 kB / 423 MB, free: 1.891 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.3561, allocations: 36.48 kB / 423 MB, free: 1.855 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001726/0.3578, allocations: 0.9671 MB / 424 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.3582, allocations: 0.7891 MB / 424.8 MB, free: 36 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000206/0.3584, allocations: 43.02 kB / 424.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.3585, allocations: 31.42 kB / 424.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3585, allocations: 0 / 424.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of Templates: time 0.01207/0.3706, allocations: 6.425 MB / 431.3 MB, free: 9.559 MB / 350.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