Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000967/0.0009672, allocations: 95.94 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001248/0.001248, allocations: 206.2 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002227/0.0002226, allocations: 8 kB / 307.7 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09827/0.0985, allocations: 51.53 MB / 359.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.0041/0.1026, allocations: 3.088 MB / 362.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002686/0.1054, allocations: 1.633 MB / 364 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002307/0.1056, allocations: 4 kB / 364 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00222/0.1078, allocations: 1.856 MB / 365.9 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004696/0.1083, allocations: 179 kB / 366 MB, free: 6.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006747/0.109, allocations: 295 kB / 366.3 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001574/0.1106, allocations: 1.714 MB / 368 MB, free: 4.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.1108, allocations: 112.4 kB / 368.1 MB, free: 4.363 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003708/0.1112, allocations: 289 kB / 368.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003383/0.1115, allocations: 294.9 kB / 368.7 MB, free: 3.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.195e-05/0.1116, allocations: 23.94 kB / 368.7 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.1118, allocations: 75.91 kB / 368.8 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005891/0.1124, allocations: 0.8219 MB / 369.6 MB, free: 2.871 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006652/0.113, allocations: 0.9283 MB / 370.6 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1623/0.2753, allocations: 2.499 MB / 373.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.2754, allocations: 1.188 kB / 373.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.2754, allocations: 0.7031 kB / 373.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.552e-05/0.2755, allocations: 0.5625 kB / 373.1 MB, free: 12.32 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.004831/0.2803, allocations: 2.427 MB / 375.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.2804, allocations: 9.438 kB / 375.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008642/0.2813, allocations: 294.4 kB / 375.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003604/0.2849, allocations: 1.834 MB / 377.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.216e-05/0.285, allocations: 58.5 kB / 377.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002367/0.2852, allocations: 51.69 kB / 377.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.2863, allocations: 394.6 kB / 378.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.2863, allocations: 0 / 378.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.93e-05/0.2863, allocations: 14.66 kB / 378.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.2864, allocations: 8.812 kB / 378.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000862/0.2872, allocations: 336.3 kB / 378.5 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006031/0.2933, allocations: 2.917 MB / 381.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006555/0.294, allocations: 318.9 kB / 381.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003471/0.2943, allocations: 168.9 kB / 381.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.815e-05/0.2944, allocations: 8.984 kB / 381.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.2944, allocations: 43.48 kB / 381.9 MB, free: 9.148 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.445e-06/0.2944, allocations: 1.219 kB / 381.9 MB, free: 9.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.005608/0.3, allocations: 2.416 MB / 384.3 MB, free: 7.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/0.3001, allocations: 87.83 kB / 384.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008448/0.3085, allocations: 5.449 MB / 389.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.617e-05/0.3086, allocations: 31.08 kB / 389.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009208/0.3095, allocations: 1.187 MB / 391.1 MB, free: 5.203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/0.3097, allocations: 167.8 kB / 391.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.918e-05/0.3097, allocations: 47.61 kB / 391.3 MB, free: 5.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.401e-05/0.3098, allocations: 327.9 kB / 391.6 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00033/0.3101, allocations: 143.8 kB / 391.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/0.3105, allocations: 222.6 kB / 392 MB, free: 4.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006825/0.3112, allocations: 392.3 kB / 392.3 MB, free: 4.332 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3112, allocations: 1.406 kB / 392.3 MB, free: 4.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001323/0.3125, allocations: 0.6929 MB / 393 MB, free: 4.008 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3125, allocations: 6.938 kB / 393 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.3125, allocations: 1.125 kB / 393 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3126, allocations: 5.625 kB / 393.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000497/0.3131, allocations: 121.2 kB / 393.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.3131, allocations: 4.094 kB / 393.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005707/0.3137, allocations: 19.5 kB / 393.2 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.447e-05/0.3137, allocations: 17.03 kB / 393.2 MB, free: 3.992 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.001288/0.315, allocations: 0.9293 MB / 394.1 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000513/0.3155, allocations: 274.8 kB / 394.4 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001563/0.3171, allocations: 0.7999 MB / 395.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.453e-06/0.3171, allocations: 9.875 kB / 395.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3171, allocations: 0.875 kB / 395.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.3171, allocations: 2.109 kB / 395.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.3189, allocations: 1.472 MB / 396.7 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.319, allocations: 0 / 396.7 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004379/0.3194, allocations: 97.5 kB / 396.8 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003463/0.3198, allocations: 106.8 kB / 396.9 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.455e-05/0.3198, allocations: 18.14 kB / 396.9 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004241/0.3202, allocations: 0.6331 MB / 397.5 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3203, allocations: 0 / 397.5 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001568/0.3218, allocations: 1.083 MB / 398.6 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000718/0.3226, allocations: 0.4952 MB / 399.1 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002847/0.3229, allocations: 7.812 kB / 399.1 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005797/0.3234, allocations: 22.77 kB / 399.2 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.545e-05/0.3235, allocations: 28.92 kB / 399.2 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.741e-05/0.3236, allocations: 14.75 kB / 399.2 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.005147/0.3287, allocations: 3.987 MB / 403.2 MB, free: 12.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3287, allocations: 0 / 403.2 MB, free: 12.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008231/0.3296, allocations: 216 kB / 403.4 MB, free: 12.67 MB / 318.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.001028/0.3306, allocations: 415.1 kB / 403.8 MB, free: 12.42 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009324/0.3315, allocations: 389.2 kB / 404.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.3316, allocations: 4 kB / 404.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004935/0.3321, allocations: 212.5 kB / 404.4 MB, free: 11.85 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/0.3334, allocations: 187 kB / 404.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008893/0.3423, allocations: 6.173 MB / 410.7 MB, free: 5.461 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00183/0.3442, allocations: 1.818 MB / 412.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005816/0.3447, allocations: 283.8 kB / 412.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003114/0.3451, allocations: 95.42 kB / 412.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3451, allocations: 0 / 412.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of Templates: time 0.02814/0.3732, allocations: 14.27 MB / 427.2 MB, free: 5.043 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches