Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.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_3.2.3_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_3.2.3_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.001318/0.001318, allocations: 113.3 kB / 18.4 MB, free: 4.699 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.0012/0.0012, allocations: 189.2 kB / 19.33 MB, free: 3.781 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.401/1.401, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.00139/0.00139, allocations: 51.92 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1022, allocations: 46.62 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006371/0.1086, allocations: 4.305 MB / 380.1 MB, free: 268 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2073/0.3159, allocations: 1.622 MB / 381.7 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004522/0.3164, allocations: 10.78 kB / 381.8 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003944/0.3169, allocations: 126.3 kB / 381.9 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009295/0.3178, allocations: 358.3 kB / 382.2 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000555/0.3184, allocations: 233.6 kB / 382.5 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.3195, allocations: 0.9857 MB / 383.4 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004735/0.3199, allocations: 235.9 kB / 383.7 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007986/0.3208, allocations: 374.2 kB / 384 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006145/0.3214, allocations: 424.4 kB / 384.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001531/0.3215, allocations: 96.22 kB / 384.5 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005141/0.3221, allocations: 221.8 kB / 384.8 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.3222, allocations: 205.4 kB / 385 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003819/0.3226, allocations: 411.6 kB / 385.4 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001393/0.324, allocations: 1.161 MB / 386.5 MB, free: 8.152 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.324, allocations: 0 / 386.5 MB, free: 8.152 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3241, allocations: 0 / 386.5 MB, free: 8.152 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.3241, allocations: 1.25 kB / 386.5 MB, free: 8.152 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002331/0.3264, allocations: 1.095 MB / 387.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.3265, allocations: 9.5 kB / 387.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.3266, allocations: 84.47 kB / 387.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007338/0.3274, allocations: 0.5151 MB / 388.2 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.54e-05/0.3275, allocations: 73.64 kB / 388.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001957/0.3277, allocations: 69.25 kB / 388.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.3289, allocations: 0.6031 MB / 389 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.3289, allocations: 1.125 kB / 389 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.059e-05/0.329, allocations: 26.33 kB / 389 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.329, allocations: 13.03 kB / 389 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.3302, allocations: 0.5243 MB / 389.5 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00329/0.3335, allocations: 2.29 MB / 391.8 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009799/0.3345, allocations: 482.1 kB / 392.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005271/0.335, allocations: 264.8 kB / 392.6 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.3351, allocations: 4.469 kB / 392.6 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.3351, allocations: 37.91 kB / 392.6 MB, free: 4.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.365e-06/0.3351, allocations: 0 / 392.6 MB, free: 4.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.01318/0.3483, allocations: 3.557 MB / 396.1 MB, free: 3.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.3484, allocations: 83.83 kB / 396.2 MB, free: 3.035 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008583/0.3492, allocations: 0.5359 MB / 396.8 MB, free: 2.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.956e-05/0.3493, allocations: 37.44 kB / 396.8 MB, free: 2.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.3495, allocations: 315.5 kB / 397.1 MB, free: 2.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.3497, allocations: 213.8 kB / 397.3 MB, free: 2.316 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001975/0.3499, allocations: 112.3 kB / 397.4 MB, free: 2.258 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.89e-05/0.35, allocations: 366 kB / 397.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005182/0.3505, allocations: 248 kB / 398 MB, free: 1.824 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005611/0.3511, allocations: 349.5 kB / 398.4 MB, free: 1.625 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.3522, allocations: 0.6043 MB / 399 MB, free: 1.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.3522, allocations: 0 / 399 MB, free: 1.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001542/0.3538, allocations: 0.7386 MB / 399.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.3538, allocations: 6.875 kB / 399.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.3538, allocations: 3.781 kB / 399.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001902/0.354, allocations: 34.97 kB / 399.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008089/0.3548, allocations: 164.5 kB / 399.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.356, allocations: 1.436 MB / 401.4 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006883/0.3567, allocations: 37.5 kB / 401.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.212e-05/0.3568, allocations: 29.47 kB / 401.4 MB, free: 15.46 MB / 334.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.0003608/0.3572, allocations: 197.7 kB / 401.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.3573, allocations: 67.09 kB / 401.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001897/0.3592, allocations: 0.8327 MB / 402.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.3592, allocations: 10.84 kB / 402.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3593, allocations: 0 / 402.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.907e-05/0.3593, allocations: 8.906 kB / 402.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00392/0.3632, allocations: 1.858 MB / 404.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.3632, allocations: 1.156 kB / 404.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005336/0.3638, allocations: 106.2 kB / 404.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002374/0.3662, allocations: 469.5 kB / 405 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.815e-05/0.3662, allocations: 16.66 kB / 405 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005141/0.3714, allocations: 3.161 MB / 408.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3714, allocations: 1.344 kB / 408.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00314/0.3746, allocations: 1.37 MB / 409.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003563/0.3749, allocations: 205.9 kB / 409.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.407e-05/0.375, allocations: 16.47 kB / 409.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006068/0.3756, allocations: 43.22 kB / 409.8 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.3758, allocations: 45.27 kB / 409.8 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-05/0.3759, allocations: 20.44 kB / 409.8 MB, free: 9.781 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005085/0.3764, allocations: 392.1 kB / 410.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3764, allocations: 0 / 410.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008539/0.3772, allocations: 189.5 kB / 410.4 MB, free: 9.52 MB / 334.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.0002906/0.3775, allocations: 141 kB / 410.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.3791, allocations: 0.735 MB / 411.3 MB, free: 9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3792, allocations: 0.625 kB / 411.3 MB, free: 9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009047/0.3801, allocations: 0.5268 MB / 411.8 MB, free: 8.668 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006842/0.3808, allocations: 90.59 kB / 411.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002826/0.3836, allocations: 1.489 MB / 413.4 MB, free: 7.656 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005254/0.3841, allocations: 0.9109 MB / 414.3 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002321/0.3844, allocations: 57.91 kB / 414.3 MB, free: 6.836 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3844, allocations: 1.375 kB / 414.3 MB, free: 6.836 MB / 334.1 MB Notification: Performance of Templates: time 0.01629/0.4007, allocations: 11.83 MB / 426.2 MB, free: 11.62 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches