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.001033/0.001033, allocations: 118.3 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 201.2 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2373, allocations: 50.55 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00429/0.2416, allocations: 3.438 MB / 412.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002422/0.244, allocations: 1.644 MB / 414.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.2442, allocations: 15.94 kB / 414.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002703/0.2469, allocations: 2.655 MB / 417 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004808/0.2474, allocations: 230.5 kB / 417.2 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006904/0.2481, allocations: 314.8 kB / 417.5 MB, free: 9.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001721/0.2499, allocations: 1.817 MB / 419.3 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.2501, allocations: 132 kB / 419.5 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003852/0.2505, allocations: 325 kB / 419.8 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003871/0.2509, allocations: 330.8 kB / 420.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.787e-05/0.251, allocations: 44 kB / 420.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002054/0.2512, allocations: 91.98 kB / 420.2 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005767/0.2518, allocations: 0.8453 MB / 421.1 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006427/0.2524, allocations: 0.9462 MB / 422 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002078/0.2545, allocations: 2.645 MB / 424.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2545, allocations: 3.938 kB / 424.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2545, allocations: 0 / 424.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.205e-05/0.2546, allocations: 0 / 424.7 MB, free: 2.105 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.0035/0.2581, allocations: 2.917 MB / 427.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.2581, allocations: 16.03 kB / 427.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004146/0.2585, allocations: 303 kB / 427.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002151/0.2607, allocations: 1.858 MB / 429.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.514e-05/0.2608, allocations: 61.14 kB / 429.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.261, allocations: 51.88 kB / 429.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006909/0.2617, allocations: 395 kB / 430.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.2617, allocations: 0 / 430.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.933e-05/0.2617, allocations: 16 kB / 430.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.2618, allocations: 11.94 kB / 430.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006899/0.2625, allocations: 335.7 kB / 430.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003443/0.2659, allocations: 2.912 MB / 433.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006013/0.2665, allocations: 319.8 kB / 433.8 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.2669, allocations: 164.1 kB / 434 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.512e-05/0.2669, allocations: 8 kB / 434 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.2669, allocations: 34.56 kB / 434.1 MB, free: 8.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.503e-06/0.2669, allocations: 0 / 434.1 MB, free: 8.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.00452/0.2715, allocations: 2.484 MB / 436.5 MB, free: 5.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.2715, allocations: 85.48 kB / 436.6 MB, free: 5.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005559/0.2771, allocations: 5.459 MB / 442.1 MB, free: 368 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.2771, allocations: 37.7 kB / 442.1 MB, free: 324 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001019/0.2782, allocations: 1.184 MB / 443.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.2783, allocations: 178.4 kB / 443.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.2784, allocations: 86.25 kB / 443.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.867e-05/0.2785, allocations: 326 kB / 443.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003141/0.2789, allocations: 137.1 kB / 444 MB, free: 14.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003523/0.2792, allocations: 221.7 kB / 444.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006661/0.2799, allocations: 376.3 kB / 444.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2799, allocations: 0 / 444.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001076/0.281, allocations: 0.7089 MB / 445.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.281, allocations: 8 kB / 445.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.281, allocations: 0 / 445.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.2811, allocations: 4 kB / 445.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004852/0.2815, allocations: 123.8 kB / 445.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.2816, allocations: 11.98 kB / 445.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003805/0.282, allocations: 16.25 kB / 445.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.407e-05/0.282, allocations: 20 kB / 445.5 MB, free: 12.87 MB / 366.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.0008775/0.2829, allocations: 0.9191 MB / 446.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002833/0.2832, allocations: 282.1 kB / 446.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/0.2845, allocations: 0.8098 MB / 447.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.2845, allocations: 7.938 kB / 447.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2846, allocations: 0 / 447.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.2846, allocations: 7.938 kB / 447.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001466/0.286, allocations: 1.477 MB / 449 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2861, allocations: 0 / 449 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004405/0.2865, allocations: 95.88 kB / 449.1 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003411/0.2869, allocations: 96.72 kB / 449.2 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/0.2869, allocations: 15.97 kB / 449.2 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005175/0.2874, allocations: 0.6382 MB / 449.8 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.2874, allocations: 3.938 kB / 449.8 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001598/0.289, allocations: 1.091 MB / 450.9 MB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006185/0.2897, allocations: 0.4952 MB / 451.4 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/0.2898, allocations: 15.92 kB / 451.4 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004516/0.2903, allocations: 20 kB / 451.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.996e-05/0.2904, allocations: 32.39 kB / 451.5 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.701e-05/0.2904, allocations: 15.98 kB / 451.5 MB, free: 6.711 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004476/0.2949, allocations: 3.99 MB / 455.5 MB, free: 2.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2949, allocations: 0 / 455.5 MB, free: 2.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006567/0.2956, allocations: 204 kB / 455.7 MB, free: 2.531 MB / 366.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.0009431/0.2965, allocations: 418.8 kB / 456.1 MB, free: 2.258 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000818/0.2974, allocations: 376.9 kB / 456.5 MB, free: 1.891 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2974, allocations: 0 / 456.5 MB, free: 1.891 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004631/0.2978, allocations: 226.8 kB / 456.7 MB, free: 1.672 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009739/0.2988, allocations: 182.3 kB / 456.9 MB, free: 1.492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006818/0.3057, allocations: 5.495 MB / 462.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001604/0.3073, allocations: 1.833 MB / 464.2 MB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005201/0.3078, allocations: 271.8 kB / 464.5 MB, free: 9.816 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002831/0.3081, allocations: 99.42 kB / 464.5 MB, free: 9.719 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3081, allocations: 0 / 464.5 MB, free: 9.719 MB / 382.1 MB Notification: Performance of Templates: time 0.02935/0.3375, allocations: 15.55 MB / 480.1 MB, free: 10.21 MB / 398.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