Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001334/0.001334, allocations: 105.4 kB / 18.4 MB, free: 4.695 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.001267/0.001267, allocations: 183.1 kB / 19.33 MB, free: 3.777 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.448/1.448, 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.001154/0.001154, allocations: 51.92 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09773, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005453/0.1032, allocations: 3.33 MB / 379.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2187/0.322, allocations: 1.391 MB / 380.5 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005134/0.3225, allocations: 8.188 kB / 380.6 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00413/0.3267, allocations: 2.659 MB / 383.2 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007282/0.3275, allocations: 174.7 kB / 383.4 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000865/0.3284, allocations: 277.2 kB / 383.7 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003007/0.3314, allocations: 1.794 MB / 385.4 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002898/0.3317, allocations: 136.9 kB / 385.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005297/0.3322, allocations: 318.1 kB / 385.9 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004131/0.3326, allocations: 326.4 kB / 386.2 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.3328, allocations: 44.53 kB / 386.3 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002202/0.333, allocations: 73.45 kB / 386.3 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000766/0.3338, allocations: 0.8455 MB / 387.2 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007506/0.3345, allocations: 0.9364 MB / 388.1 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004197/0.3387, allocations: 2.605 MB / 390.7 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.3387, allocations: 3.938 kB / 390.7 MB, free: 8.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3388, allocations: 0 / 390.7 MB, free: 8.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.685e-05/0.3388, allocations: 1.172 kB / 390.7 MB, free: 8.184 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005811/0.3447, allocations: 2.801 MB / 393.5 MB, free: 6.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.3447, allocations: 9.875 kB / 393.5 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005027/0.3452, allocations: 276.5 kB / 393.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002926/0.3482, allocations: 1.823 MB / 395.6 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.443e-05/0.3483, allocations: 58.5 kB / 395.7 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001877/0.3485, allocations: 55.31 kB / 395.7 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000729/0.3492, allocations: 397.2 kB / 396.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.3492, allocations: 1.375 kB / 396.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.971e-05/0.3493, allocations: 14.75 kB / 396.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.3493, allocations: 17.38 kB / 396.2 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006684/0.35, allocations: 327.5 kB / 396.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004786/0.3548, allocations: 2.892 MB / 399.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006797/0.3555, allocations: 321.3 kB / 399.7 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003324/0.3558, allocations: 162.4 kB / 399.8 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.956e-05/0.3559, allocations: 4.281 kB / 399.8 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/0.3559, allocations: 41.53 kB / 399.9 MB, free: 2.488 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.104e-06/0.3559, allocations: 0 / 399.9 MB, free: 2.488 MB / 318.1 MB Notification: Performance of matching and sorting (n=48): time 0.005093/0.361, allocations: 2.364 MB / 402.2 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.3611, allocations: 86.98 kB / 402.3 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008535/0.3696, allocations: 5.433 MB / 407.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/0.3698, allocations: 36.36 kB / 407.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001344/0.3711, allocations: 1.21 MB / 409 MB, free: 13.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.3713, allocations: 168.2 kB / 409.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.3715, allocations: 86.16 kB / 409.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3716, allocations: 333.9 kB / 409.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000353/0.372, allocations: 148.4 kB / 409.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.3724, allocations: 217.6 kB / 409.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007571/0.3732, allocations: 386.2 kB / 410.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3732, allocations: 0 / 410.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001518/0.3747, allocations: 0.6839 MB / 411 MB, free: 11.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.3747, allocations: 4 kB / 411 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.3748, allocations: 4 kB / 411 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.088e-05/0.3748, allocations: 8.25 kB / 411 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005228/0.3753, allocations: 119.9 kB / 411.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.3753, allocations: 7.938 kB / 411.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005325/0.3759, allocations: 19.89 kB / 411.2 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.3759, allocations: 19.94 kB / 411.2 MB, free: 11.11 MB / 334.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.001288/0.3772, allocations: 0.9154 MB / 412.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003665/0.3776, allocations: 264.5 kB / 412.4 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.3791, allocations: 0.7814 MB / 413.1 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.3791, allocations: 4 kB / 413.1 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.3791, allocations: 7.984 kB / 413.2 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3791, allocations: 0 / 413.2 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.3811, allocations: 1.462 MB / 414.6 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.3811, allocations: 3.938 kB / 414.6 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000452/0.3816, allocations: 99.88 kB / 414.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003269/0.3819, allocations: 91.44 kB / 414.8 MB, free: 7.426 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.3819, allocations: 11.98 kB / 414.8 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005974/0.3825, allocations: 0.6277 MB / 415.4 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3826, allocations: 0 / 415.4 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001686/0.3842, allocations: 1.069 MB / 416.5 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007376/0.385, allocations: 493.5 kB / 417 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/0.3852, allocations: 15.92 kB / 417 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004935/0.3857, allocations: 19.89 kB / 417 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.768e-05/0.3858, allocations: 28.39 kB / 417.1 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-05/0.3858, allocations: 15.98 kB / 417.1 MB, free: 5.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.005321/0.3912, allocations: 3.97 MB / 421 MB, free: 1.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3912, allocations: 0 / 421 MB, free: 1.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001011/0.3922, allocations: 208 kB / 421.2 MB, free: 0.9258 MB / 334.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.001023/0.3932, allocations: 430.8 kB / 421.7 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008397/0.3941, allocations: 381.3 kB / 422 MB, free: 160 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.3941, allocations: 4.062 kB / 422 MB, free: 156 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004836/0.3946, allocations: 210.5 kB / 422.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.3958, allocations: 187.1 kB / 422.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007973/0.4038, allocations: 5.59 MB / 428 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001647/0.4055, allocations: 1.821 MB / 429.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006321/0.4062, allocations: 99.25 kB / 429.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4062, allocations: 0 / 429.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of Templates: time 0.06105/0.4672, allocations: 35.95 MB / 465.9 MB, free: 4.176 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches