Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 107.8 kB / 17.16 MB, free: 6.328 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.001684/0.001684, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.242/2.242, allocations: 222.9 MB / 241.8 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 43.56 kB / 300.6 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1485, allocations: 49.46 MB / 350.1 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.01022/0.1588, allocations: 3.426 MB / 353.5 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005475/0.1643, allocations: 1.438 MB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007179/0.1651, allocations: 7.938 kB / 354.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00528/0.1704, allocations: 1.852 MB / 356.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00128/0.1718, allocations: 147 kB / 356.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001709/0.1736, allocations: 274.9 kB / 357.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003914/0.1775, allocations: 1.702 MB / 358.9 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003269/0.1779, allocations: 119.9 kB / 359 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006258/0.1785, allocations: 285 kB / 359.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00058/0.1791, allocations: 298.8 kB / 359.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.1792, allocations: 31.94 kB / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002975/0.1796, allocations: 71.97 kB / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007863/0.1803, allocations: 0.8219 MB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001176/0.1815, allocations: 0.8994 MB / 361.4 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002649/0.1842, allocations: 2.141 MB / 363.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.1842, allocations: 0 / 363.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1842, allocations: 0 / 363.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.008e-05/0.1843, allocations: 0 / 363.6 MB, free: 7.328 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.007317/0.1917, allocations: 2.794 MB / 366.4 MB, free: 4.469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.915e-05/0.1917, allocations: 12.03 kB / 366.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001128/0.1929, allocations: 285.3 kB / 366.6 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005674/0.1986, allocations: 1.816 MB / 368.5 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/0.1988, allocations: 59.27 kB / 368.5 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004009/0.1992, allocations: 51.92 kB / 368.6 MB, free: 2.188 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.2006, allocations: 391 kB / 368.9 MB, free: 1.793 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.2007, allocations: 0 / 368.9 MB, free: 1.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.801e-05/0.2008, allocations: 16 kB / 369 MB, free: 1.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/0.2008, allocations: 8 kB / 369 MB, free: 1.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.2021, allocations: 335.7 kB / 369.3 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3477/0.5497, allocations: 2.913 MB / 372.2 MB, free: 23.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.5511, allocations: 316.3 kB / 372.5 MB, free: 23.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005647/0.5517, allocations: 171.5 kB / 372.7 MB, free: 23.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.085e-05/0.5517, allocations: 8.094 kB / 372.7 MB, free: 23.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.5518, allocations: 41.72 kB / 372.7 MB, free: 23.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 7.945e-06/0.5518, allocations: 0.6875 kB / 372.7 MB, free: 23.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.01158/0.5634, allocations: 2.379 MB / 375.1 MB, free: 22.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/0.5635, allocations: 83.05 kB / 375.2 MB, free: 22.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02137/0.5849, allocations: 5.43 MB / 380.6 MB, free: 20.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001861/0.5852, allocations: 34.86 kB / 380.7 MB, free: 20.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002645/0.5878, allocations: 1.215 MB / 381.9 MB, free: 19.78 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003931/0.5883, allocations: 171.1 kB / 382 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003517/0.5887, allocations: 85.48 kB / 382.1 MB, free: 19.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.5888, allocations: 325 kB / 382.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007342/0.5896, allocations: 141.9 kB / 382.6 MB, free: 19.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007673/0.5903, allocations: 225 kB / 382.8 MB, free: 19.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001372/0.5917, allocations: 383.2 kB / 383.2 MB, free: 18.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.5918, allocations: 1.125 kB / 383.2 MB, free: 18.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00317/0.595, allocations: 0.6878 MB / 383.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.638e-05/0.595, allocations: 6.062 kB / 383.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.595, allocations: 2.875 kB / 383.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.843e-05/0.5951, allocations: 4.438 kB / 383.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009743/0.5961, allocations: 121.2 kB / 384 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.819e-05/0.5961, allocations: 9.453 kB / 384 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.5978, allocations: 17.48 kB / 384 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.209e-05/0.5979, allocations: 18.14 kB / 384 MB, free: 18.54 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (62): * Single equations (assignments): 62 * 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.002722/0.6007, allocations: 0.9191 MB / 385 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001198/0.6019, allocations: 266.8 kB / 385.2 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003371/0.6053, allocations: 0.7968 MB / 386 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.6053, allocations: 5.297 kB / 386 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.6053, allocations: 1.156 kB / 386 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.6054, allocations: 3.812 kB / 386 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004893/0.6103, allocations: 1.465 MB / 387.5 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/0.6103, allocations: 5.688 kB / 387.5 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008623/0.6112, allocations: 102.9 kB / 387.6 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000665/0.6119, allocations: 100.3 kB / 387.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.295e-05/0.612, allocations: 14.03 kB / 387.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007824/0.6128, allocations: 0.6227 MB / 388.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.6128, allocations: 4.625 kB / 388.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003737/0.6165, allocations: 1.086 MB / 389.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001903/0.6185, allocations: 497.7 kB / 389.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008324/0.6193, allocations: 6.969 kB / 389.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001353/0.6207, allocations: 21.64 kB / 389.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.6208, allocations: 32.42 kB / 390 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.037e-05/0.6209, allocations: 17.8 kB / 390 MB, free: 15.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.01116/0.6321, allocations: 3.971 MB / 394 MB, free: 12.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.603e-06/0.6322, allocations: 0 / 394 MB, free: 12.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002347/0.6345, allocations: 208 kB / 394.2 MB, free: 12.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * 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 (41): * Single equations (assignments): 40 * 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001698/0.6363, allocations: 423.7 kB / 394.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.6378, allocations: 381 kB / 394.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.6378, allocations: 0 / 394.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007281/0.6385, allocations: 214.4 kB / 395.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003041/0.6416, allocations: 183.6 kB / 395.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01016/0.6518, allocations: 6.217 MB / 401.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001741/0.6536, allocations: 1.81 MB / 403.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000629/0.6542, allocations: 95.42 kB / 403.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of SimCode: time 1.172e-06/0.6543, allocations: 0 / 403.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of Templates: time 0.09778/0.752, allocations: 35.77 MB / 439.2 MB, free: 15.67 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches