Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001339/0.001339, allocations: 109.4 kB / 18.4 MB, free: 4.695 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.001411/0.001411, allocations: 193.2 kB / 19.33 MB, free: 3.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001217, allocations: 48.36 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1286, allocations: 46.62 MB / 375.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.005338/0.134, allocations: 2.759 MB / 378.6 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002225/0.1363, allocations: 1.282 MB / 379.9 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001799/0.1365, allocations: 4 kB / 379.9 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002941/0.1368, allocations: 63.42 kB / 379.9 MB, free: 472 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000605/0.1374, allocations: 234.7 kB / 380.1 MB, free: 236 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002793/0.1377, allocations: 115.8 kB / 380.3 MB, free: 120 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2516/0.3893, allocations: 454.4 kB / 380.7 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002658/0.3896, allocations: 87.62 kB / 380.8 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003842/0.39, allocations: 187.4 kB / 381 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003167/0.3903, allocations: 220.9 kB / 381.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.972e-05/0.3904, allocations: 42 kB / 381.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004277/0.3909, allocations: 162.1 kB / 381.4 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.391, allocations: 94.61 kB / 381.5 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.3912, allocations: 184.2 kB / 381.7 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008118/0.392, allocations: 0.5075 MB / 382.2 MB, free: 9.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.392, allocations: 0 / 382.2 MB, free: 9.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.392, allocations: 1.375 kB / 382.2 MB, free: 9.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.3921, allocations: 0.7969 kB / 382.2 MB, free: 9.75 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.001624/0.3937, allocations: 0.6978 MB / 382.9 MB, free: 9.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.3937, allocations: 13.78 kB / 382.9 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.3938, allocations: 44.52 kB / 382.9 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004849/0.3943, allocations: 326.6 kB / 383.2 MB, free: 9.031 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.497e-05/0.3944, allocations: 50.92 kB / 383.3 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.3946, allocations: 39.73 kB / 383.3 MB, free: 8.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007065/0.3953, allocations: 329.6 kB / 383.7 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.3954, allocations: 1.031 kB / 383.7 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.36e-05/0.3954, allocations: 12.16 kB / 383.7 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.3954, allocations: 7.094 kB / 383.7 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006862/0.3961, allocations: 304.8 kB / 384 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.3978, allocations: 1.147 MB / 385.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005774/0.3984, allocations: 288.9 kB / 385.4 MB, free: 8.312 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003158/0.3987, allocations: 164.6 kB / 385.6 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.3987, allocations: 4.797 kB / 385.6 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.3988, allocations: 44.05 kB / 385.6 MB, free: 8.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.463e-06/0.3988, allocations: 1.438 kB / 385.6 MB, free: 8.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.008844/0.4076, allocations: 2.424 MB / 388 MB, free: 7.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.4077, allocations: 82.45 kB / 388.1 MB, free: 7.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004155/0.4081, allocations: 284.2 kB / 388.4 MB, free: 7.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.4081, allocations: 36.23 kB / 388.4 MB, free: 6.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.628e-05/0.4082, allocations: 168.5 kB / 388.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.4084, allocations: 149.3 kB / 388.7 MB, free: 6.715 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.4085, allocations: 78.84 kB / 388.8 MB, free: 6.672 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.4086, allocations: 339.6 kB / 389.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003973/0.409, allocations: 162.9 kB / 389.3 MB, free: 6.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/0.4095, allocations: 230.2 kB / 389.5 MB, free: 6.168 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008007/0.4103, allocations: 401.2 kB / 389.9 MB, free: 5.965 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.4103, allocations: 8.312 kB / 389.9 MB, free: 5.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00103/0.4113, allocations: 487.8 kB / 390.4 MB, free: 5.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.4114, allocations: 10.38 kB / 390.4 MB, free: 5.766 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.4114, allocations: 1.219 kB / 390.4 MB, free: 5.766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.4114, allocations: 3.438 kB / 390.4 MB, free: 5.766 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005802/0.412, allocations: 115 kB / 390.5 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.412, allocations: 8.734 kB / 390.5 MB, free: 5.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003751/0.4124, allocations: 31.7 kB / 390.6 MB, free: 5.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.4124, allocations: 14.27 kB / 390.6 MB, free: 5.75 MB / 318.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.0001635/0.4126, allocations: 163.9 kB / 390.7 MB, free: 5.602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.579e-05/0.4127, allocations: 31.84 kB / 390.8 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.4145, allocations: 0.6608 MB / 391.4 MB, free: 5.324 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.4145, allocations: 4.188 kB / 391.4 MB, free: 5.324 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.4145, allocations: 1.969 kB / 391.4 MB, free: 5.324 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.4145, allocations: 4.031 kB / 391.5 MB, free: 5.324 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002923/0.4175, allocations: 1.278 MB / 392.7 MB, free: 4.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.4175, allocations: 1.656 kB / 392.7 MB, free: 4.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004438/0.4179, allocations: 91.86 kB / 392.8 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001528/0.4195, allocations: 268.7 kB / 393.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-05/0.4195, allocations: 12.88 kB / 393.1 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003915/0.4235, allocations: 2.434 MB / 395.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.4235, allocations: 2.062 kB / 395.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002295/0.4258, allocations: 1.011 MB / 396.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/0.426, allocations: 152 kB / 396.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.185e-05/0.4261, allocations: 7.531 kB / 396.7 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004458/0.4265, allocations: 28.89 kB / 396.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.4267, allocations: 37.14 kB / 396.8 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.091e-05/0.4268, allocations: 15.34 kB / 396.8 MB, free: 2.027 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002924/0.4271, allocations: 212.9 kB / 397 MB, free: 1.902 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4271, allocations: 0 / 397 MB, free: 1.902 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006877/0.4278, allocations: 116.6 kB / 397.1 MB, free: 1.887 MB / 318.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.0003362/0.4281, allocations: 141.6 kB / 397.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001139/0.4293, allocations: 438.6 kB / 397.7 MB, free: 1.652 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.4293, allocations: 0 / 397.7 MB, free: 1.652 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007601/0.4301, allocations: 385.2 kB / 398 MB, free: 1.445 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004966/0.4306, allocations: 42.06 kB / 398.1 MB, free: 1.422 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.4325, allocations: 0.9873 MB / 399.1 MB, free: 0.832 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.4328, allocations: 0.7904 MB / 399.9 MB, free: 124 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.433, allocations: 39.91 kB / 399.9 MB, free: 116 kB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4331, allocations: 0 / 399.9 MB, free: 116 kB / 318.1 MB Notification: Performance of Templates: time 0.01405/0.4471, allocations: 5.777 MB / 405.7 MB, free: 13.81 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches