Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001858/0.001858, allocations: 195 kB / 18 MB, free: 5.074 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.314/1.314, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00087/0.00087, allocations: 39.94 kB / 351.3 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.251, allocations: 49.43 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005115/0.2561, allocations: 4.372 MB / 405.1 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.2585, allocations: 1.582 MB / 406.7 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000279/0.2588, allocations: 8 kB / 406.7 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003487/0.2592, allocations: 126.8 kB / 406.8 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007438/0.26, allocations: 357.6 kB / 407.1 MB, free: 2.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.2604, allocations: 235.6 kB / 407.4 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008295/0.2612, allocations: 0.9803 MB / 408.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003314/0.2615, allocations: 245.4 kB / 408.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003786/0.2619, allocations: 370.7 kB / 409 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000469/0.2624, allocations: 426.2 kB / 409.4 MB, free: 208 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.2625, allocations: 96 kB / 409.5 MB, free: 112 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003879/0.2629, allocations: 219.9 kB / 409.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.2631, allocations: 199.3 kB / 409.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003515/0.2634, allocations: 414.1 kB / 410.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001097/0.2645, allocations: 1.171 MB / 411.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2646, allocations: 0 / 411.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2646, allocations: 0 / 411.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.2646, allocations: 0 / 411.5 MB, free: 14.12 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002215/0.2668, allocations: 1.11 MB / 412.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.2669, allocations: 16.03 kB / 412.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/0.267, allocations: 80.42 kB / 412.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007037/0.2677, allocations: 0.5072 MB / 413.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.67e-05/0.2678, allocations: 75.52 kB / 413.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001842/0.268, allocations: 68.48 kB / 413.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.269, allocations: 0.6059 MB / 413.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.2691, allocations: 0 / 413.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.117e-05/0.2691, allocations: 20 kB / 413.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.2691, allocations: 16 kB / 413.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.2703, allocations: 0.5282 MB / 414.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0031/0.2734, allocations: 2.303 MB / 416.8 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009498/0.2743, allocations: 474.5 kB / 417.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000528/0.2749, allocations: 274.7 kB / 417.5 MB, free: 7.812 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.2749, allocations: 4 kB / 417.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.2749, allocations: 46.48 kB / 417.6 MB, free: 7.754 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.764e-06/0.275, allocations: 0 / 417.6 MB, free: 7.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01238/0.2873, allocations: 3.56 MB / 421.1 MB, free: 4.105 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.2874, allocations: 81.67 kB / 421.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00065/0.2881, allocations: 0.541 MB / 421.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.449e-05/0.2881, allocations: 37.7 kB / 421.8 MB, free: 3.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000217/0.2883, allocations: 324.8 kB / 422.1 MB, free: 3.094 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.2885, allocations: 214.2 kB / 422.3 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.2887, allocations: 122.2 kB / 422.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.2889, allocations: 366.8 kB / 422.8 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000568/0.2894, allocations: 241.2 kB / 423 MB, free: 2.152 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006297/0.2901, allocations: 356.4 kB / 423.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/0.2913, allocations: 0.5981 MB / 424 MB, free: 1.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.2913, allocations: 0 / 424 MB, free: 1.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001519/0.2928, allocations: 0.7452 MB / 424.7 MB, free: 392 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.2929, allocations: 11.94 kB / 424.7 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.2929, allocations: 4.312 kB / 424.7 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001519/0.293, allocations: 32.84 kB / 424.8 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007829/0.2938, allocations: 171.7 kB / 424.9 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.2949, allocations: 1.422 MB / 426.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005247/0.2954, allocations: 39.98 kB / 426.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.632e-05/0.2955, allocations: 27.98 kB / 426.4 MB, free: 14.53 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002475/0.2958, allocations: 205.7 kB / 426.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.2959, allocations: 63.58 kB / 426.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.2977, allocations: 0.8412 MB / 427.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.156e-06/0.2977, allocations: 11.94 kB / 427.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.2977, allocations: 0 / 427.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.2977, allocations: 3.984 kB / 427.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003575/0.3013, allocations: 1.838 MB / 429.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3013, allocations: 4 kB / 429.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000519/0.3019, allocations: 103.9 kB / 429.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002271/0.3041, allocations: 488.3 kB / 430 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.578e-05/0.3042, allocations: 15.94 kB / 430 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005157/0.3094, allocations: 3.158 MB / 433.1 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3094, allocations: 0 / 433.1 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002996/0.3124, allocations: 1.375 MB / 434.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002635/0.3127, allocations: 208.6 kB / 434.7 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.556e-05/0.3128, allocations: 12 kB / 434.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000568/0.3133, allocations: 39.97 kB / 434.8 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.3135, allocations: 56.42 kB / 434.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.466e-05/0.3135, allocations: 23.94 kB / 434.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005182/0.314, allocations: 386.9 kB / 435.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3141, allocations: 0 / 435.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006771/0.3147, allocations: 184.1 kB / 435.4 MB, free: 5.293 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002693/0.315, allocations: 167 kB / 435.6 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.3165, allocations: 0.7291 MB / 436.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.3165, allocations: 8.062 kB / 436.3 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008793/0.3174, allocations: 0.5133 MB / 436.8 MB, free: 3.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006222/0.318, allocations: 101.5 kB / 436.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002591/0.3206, allocations: 1.477 MB / 438.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004515/0.3211, allocations: 0.9004 MB / 439.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003023/0.3214, allocations: 76.8 kB / 439.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001802/0.3216, allocations: 47.42 kB / 439.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3216, allocations: 0 / 439.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of Templates: time 0.01646/0.3381, allocations: 10.39 MB / 449.8 MB, free: 6.91 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches