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.00124/0.00124, allocations: 94.25 kB / 17.31 MB, free: 6.535 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.00136/0.00136, allocations: 175.2 kB / 18.21 MB, free: 5.684 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.104/1.104, allocations: 223.3 MB / 242.2 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000198/0.000198, allocations: 8 kB / 302.1 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06953/0.06975, allocations: 50.42 MB / 352.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.002919/0.07268, allocations: 3.04 MB / 355.5 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.0746, allocations: 1.415 MB / 357 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.07479, allocations: 11.94 kB / 357 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.07661, allocations: 1.852 MB / 358.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003442/0.07697, allocations: 147 kB / 359 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000545/0.07752, allocations: 282.4 kB / 359.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00142/0.07895, allocations: 1.706 MB / 360.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.07913, allocations: 111.9 kB / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003035/0.07944, allocations: 281 kB / 361.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002923/0.07975, allocations: 286.9 kB / 361.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-05/0.07982, allocations: 27.94 kB / 361.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.07996, allocations: 67.92 kB / 361.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004686/0.08044, allocations: 0.8219 MB / 362.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005691/0.08101, allocations: 0.9128 MB / 363.4 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.08233, allocations: 2.09 MB / 365.5 MB, free: 6.602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.674e-06/0.08234, allocations: 4 kB / 365.5 MB, free: 6.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.08234, allocations: 0 / 365.5 MB, free: 6.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.147e-05/0.08238, allocations: 0 / 365.5 MB, free: 6.598 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.002881/0.08527, allocations: 2.411 MB / 367.9 MB, free: 4.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.864e-05/0.0853, allocations: 12.03 kB / 368 MB, free: 4.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002979/0.08561, allocations: 281.3 kB / 368.2 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001939/0.08755, allocations: 1.82 MB / 370 MB, free: 1.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.243e-05/0.08762, allocations: 59.27 kB / 370.1 MB, free: 1.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.08777, allocations: 51.92 kB / 370.2 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000605/0.08839, allocations: 395 kB / 370.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.08841, allocations: 0 / 370.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/0.08845, allocations: 16 kB / 370.6 MB, free: 1.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.08846, allocations: 8 kB / 370.6 MB, free: 1.422 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006088/0.08907, allocations: 335.7 kB / 370.9 MB, free: 1.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1176/0.2067, allocations: 2.911 MB / 373.8 MB, free: 22.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005731/0.2073, allocations: 315.7 kB / 374.1 MB, free: 22.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003004/0.2076, allocations: 173.9 kB / 374.3 MB, free: 22.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.2077, allocations: 7.859 kB / 374.3 MB, free: 22.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.2077, allocations: 41.17 kB / 374.3 MB, free: 22.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.224e-06/0.2077, allocations: 1.156 kB / 374.3 MB, free: 22.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.004107/0.2118, allocations: 2.41 MB / 376.7 MB, free: 21.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.425e-05/0.2119, allocations: 83.45 kB / 376.8 MB, free: 21.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004905/0.2168, allocations: 5.428 MB / 382.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.2168, allocations: 34.11 kB / 382.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007579/0.2176, allocations: 1.206 MB / 383.5 MB, free: 18.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.197e-05/0.2177, allocations: 169.8 kB / 383.7 MB, free: 18.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.259e-05/0.2177, allocations: 46.25 kB / 383.7 MB, free: 18.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.33e-05/0.2178, allocations: 329.3 kB / 384 MB, free: 18.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/0.2181, allocations: 144.4 kB / 384.2 MB, free: 18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002943/0.2184, allocations: 221.7 kB / 384.4 MB, free: 17.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005755/0.2189, allocations: 390.8 kB / 384.8 MB, free: 17.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.219, allocations: 1.156 kB / 384.8 MB, free: 17.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008976/0.2199, allocations: 0.6838 MB / 385.4 MB, free: 17.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.2199, allocations: 5.719 kB / 385.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2199, allocations: 2.562 kB / 385.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2199, allocations: 8.719 kB / 385.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004309/0.2203, allocations: 118.8 kB / 385.6 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.2204, allocations: 9.234 kB / 385.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/0.2207, allocations: 18.52 kB / 385.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.2207, allocations: 18.59 kB / 385.6 MB, free: 17.31 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.0007793/0.2215, allocations: 0.9221 MB / 386.5 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/0.2218, allocations: 276.1 kB / 386.8 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.2229, allocations: 0.8045 MB / 387.6 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.223, allocations: 3.938 kB / 387.6 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.223, allocations: 4.594 kB / 387.6 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.223, allocations: 1.828 kB / 387.6 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.2244, allocations: 1.467 MB / 389.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2244, allocations: 1.906 kB / 389.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003748/0.2248, allocations: 98.7 kB / 389.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002803/0.225, allocations: 99.66 kB / 389.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.47e-05/0.2251, allocations: 13.11 kB / 389.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003531/0.2254, allocations: 0.6329 MB / 389.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2254, allocations: 3.938 kB / 389.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.2267, allocations: 1.081 MB / 391 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004867/0.2272, allocations: 496.5 kB / 391.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.2274, allocations: 11.62 kB / 391.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004198/0.2278, allocations: 21.62 kB / 391.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.86e-05/0.2279, allocations: 35.8 kB / 391.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.2279, allocations: 17.86 kB / 391.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00285/0.2308, allocations: 3.976 MB / 395.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2308, allocations: 0 / 395.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004861/0.2313, allocations: 200 kB / 395.8 MB, free: 11.23 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.0007671/0.232, allocations: 425.2 kB / 396.2 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005703/0.2326, allocations: 380.9 kB / 396.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2326, allocations: 3.938 kB / 396.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003373/0.233, allocations: 222.8 kB / 396.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009517/0.2339, allocations: 183.3 kB / 397 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/0.2387, allocations: 6.331 MB / 403.3 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009711/0.2397, allocations: 1.818 MB / 405.1 MB, free: 1.984 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002208/0.2399, allocations: 95.42 kB / 405.2 MB, free: 1.891 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2399, allocations: 4 kB / 405.2 MB, free: 1.887 MB / 302.1 MB Notification: Performance of Templates: time 0.04354/0.2835, allocations: 35.3 MB / 440.5 MB, free: 14.57 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