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.001432/0.001432, allocations: 111.6 kB / 17.06 MB, free: 5.824 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.001469/0.001469, allocations: 192 kB / 18 MB, free: 4.977 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.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009797/0.0009798, allocations: 51.92 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2735, allocations: 49.42 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00536/0.2789, allocations: 4.373 MB / 405.1 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.2816, allocations: 1.586 MB / 406.7 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003292/0.2819, allocations: 11.94 kB / 406.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003853/0.2823, allocations: 126.8 kB / 406.8 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008191/0.2832, allocations: 361.6 kB / 407.2 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004281/0.2836, allocations: 239.6 kB / 407.4 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008753/0.2845, allocations: 0.9823 MB / 408.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003367/0.2848, allocations: 234.6 kB / 408.6 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004149/0.2853, allocations: 382.6 kB / 409 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004616/0.2857, allocations: 426.3 kB / 409.4 MB, free: 156 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.2859, allocations: 96 kB / 409.5 MB, free: 60 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003548/0.2862, allocations: 215.9 kB / 409.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.2864, allocations: 195.3 kB / 409.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003314/0.2867, allocations: 410.1 kB / 410.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001024/0.2877, allocations: 1.168 MB / 411.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2878, allocations: 4 kB / 411.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2878, allocations: 0 / 411.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.2878, allocations: 0 / 411.5 MB, free: 14.08 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.002324/0.2901, allocations: 1.087 MB / 412.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2902, allocations: 8.031 kB / 412.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.2903, allocations: 83.94 kB / 412.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007259/0.291, allocations: 0.5184 MB / 413.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.703e-05/0.2911, allocations: 79.52 kB / 413.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001963/0.2913, allocations: 68.48 kB / 413.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.2924, allocations: 0.6019 MB / 413.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.2924, allocations: 4 kB / 413.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.568e-05/0.2925, allocations: 24 kB / 413.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.2925, allocations: 16 kB / 414 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.2936, allocations: 0.5282 MB / 414.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003427/0.297, allocations: 2.279 MB / 416.8 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009772/0.298, allocations: 489.2 kB / 417.2 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005431/0.2986, allocations: 262.8 kB / 417.5 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.93e-05/0.2986, allocations: 11.98 kB / 417.5 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/0.2987, allocations: 42.56 kB / 417.5 MB, free: 7.738 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 3.166e-06/0.2987, allocations: 0 / 417.5 MB, free: 7.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01308/0.3118, allocations: 3.547 MB / 421.1 MB, free: 4.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.3119, allocations: 81.67 kB / 421.2 MB, free: 4 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007269/0.3126, allocations: 0.5409 MB / 421.7 MB, free: 3.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.391e-05/0.3127, allocations: 33.7 kB / 421.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002232/0.3129, allocations: 312.3 kB / 422.1 MB, free: 3.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.3131, allocations: 209 kB / 422.3 MB, free: 2.895 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/0.3133, allocations: 118.2 kB / 422.4 MB, free: 2.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3134, allocations: 366.8 kB / 422.7 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005482/0.314, allocations: 245.2 kB / 423 MB, free: 2.164 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005972/0.3146, allocations: 352.4 kB / 423.3 MB, free: 1.789 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.3158, allocations: 0.6059 MB / 423.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3158, allocations: 0 / 423.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001491/0.3173, allocations: 0.7374 MB / 424.7 MB, free: 408 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3173, allocations: 8 kB / 424.7 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.3173, allocations: 4 kB / 424.7 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001691/0.3175, allocations: 36.77 kB / 424.7 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007803/0.3183, allocations: 163.8 kB / 424.9 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.3194, allocations: 1.43 MB / 426.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005645/0.32, allocations: 39.92 kB / 426.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.157e-05/0.3201, allocations: 23.98 kB / 426.4 MB, free: 14.55 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.000267/0.3203, allocations: 197.8 kB / 426.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.3205, allocations: 75.17 kB / 426.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/0.3222, allocations: 0.8297 MB / 427.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.3222, allocations: 11.94 kB / 427.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.3222, allocations: 0 / 427.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.3223, allocations: 3.984 kB / 427.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003532/0.3258, allocations: 1.857 MB / 429.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.3258, allocations: 4 kB / 429.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005166/0.3263, allocations: 103.9 kB / 429.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002194/0.3285, allocations: 468.3 kB / 429.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.676e-05/0.3286, allocations: 16 kB / 429.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004692/0.3333, allocations: 3.146 MB / 433.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3333, allocations: 3.938 kB / 433.1 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002758/0.3361, allocations: 1.375 MB / 434.4 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002678/0.3364, allocations: 208.2 kB / 434.6 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.927e-05/0.3364, allocations: 12 kB / 434.6 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005635/0.337, allocations: 47.97 kB / 434.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.3372, allocations: 44.48 kB / 434.7 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.367e-05/0.3372, allocations: 20 kB / 434.8 MB, free: 5.891 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004909/0.3377, allocations: 390.9 kB / 435.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3377, allocations: 0 / 435.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007682/0.3385, allocations: 196.1 kB / 435.3 MB, free: 5.32 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.0003468/0.3388, allocations: 147.1 kB / 435.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001485/0.3403, allocations: 0.7363 MB / 436.2 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3404, allocations: 0 / 436.2 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008625/0.3412, allocations: 0.5179 MB / 436.7 MB, free: 3.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006119/0.3418, allocations: 93.88 kB / 436.8 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.3444, allocations: 1.467 MB / 438.3 MB, free: 2.301 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.3448, allocations: 0.8965 MB / 439.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002727/0.3451, allocations: 76.8 kB / 439.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.3452, allocations: 55.41 kB / 439.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3452, allocations: 0 / 439.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of Templates: time 0.01584/0.3611, allocations: 10.39 MB / 449.7 MB, free: 6.965 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