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.00116/0.00116, allocations: 117.6 kB / 17.78 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 204.7 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2542, allocations: 50.54 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00529/0.2595, allocations: 3.446 MB / 412.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002964/0.2625, allocations: 1.648 MB / 414.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003432/0.2629, allocations: 4 kB / 414.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003123/0.266, allocations: 2.663 MB / 417 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000763/0.2669, allocations: 222.5 kB / 417.2 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008337/0.2677, allocations: 330.9 kB / 417.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002131/0.2699, allocations: 1.821 MB / 419.4 MB, free: 7.441 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002556/0.2701, allocations: 132 kB / 419.5 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005165/0.2707, allocations: 321 kB / 419.8 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000481/0.2712, allocations: 322.8 kB / 420.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.2713, allocations: 44 kB / 420.2 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002692/0.2716, allocations: 103.9 kB / 420.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005992/0.2722, allocations: 0.8375 MB / 421.1 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008606/0.273, allocations: 0.9501 MB / 422.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002214/0.2753, allocations: 2.633 MB / 424.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2753, allocations: 0 / 424.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2753, allocations: 0 / 424.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.529e-05/0.2754, allocations: 0 / 424.7 MB, free: 2.098 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.004476/0.2799, allocations: 2.818 MB / 427.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.2799, allocations: 16.03 kB / 427.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004169/0.2803, allocations: 289.3 kB / 427.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002593/0.2829, allocations: 1.832 MB / 429.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.94e-05/0.283, allocations: 63.25 kB / 429.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.2832, allocations: 47.92 kB / 429.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007127/0.2839, allocations: 395 kB / 430.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.284, allocations: 0 / 430.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/0.284, allocations: 16 kB / 430.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.284, allocations: 8 kB / 430.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006965/0.2847, allocations: 327.8 kB / 430.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003836/0.2886, allocations: 2.907 MB / 433.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006225/0.2892, allocations: 317 kB / 433.7 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003661/0.2896, allocations: 173.6 kB / 433.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.776e-05/0.2896, allocations: 8 kB / 433.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.2897, allocations: 38.5 kB / 433.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.124e-06/0.2897, allocations: 0 / 433.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.00458/0.2943, allocations: 2.398 MB / 436.3 MB, free: 6.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.509e-05/0.2943, allocations: 81.55 kB / 436.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005665/0.3, allocations: 5.452 MB / 441.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.3001, allocations: 41.64 kB / 441.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001016/0.3011, allocations: 1.187 MB / 443.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.3012, allocations: 161.6 kB / 443.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.3014, allocations: 94.16 kB / 443.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3015, allocations: 326 kB / 443.6 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.3018, allocations: 141 kB / 443.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003555/0.3022, allocations: 221.7 kB / 444 MB, free: 14.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006607/0.3028, allocations: 376.3 kB / 444.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3028, allocations: 3.938 kB / 444.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001077/0.3039, allocations: 0.6878 MB / 445 MB, free: 13.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.304, allocations: 8 kB / 445.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.304, allocations: 0 / 445.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.304, allocations: 4 kB / 445.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005072/0.3045, allocations: 119.8 kB / 445.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.3045, allocations: 11.98 kB / 445.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/0.3049, allocations: 16.25 kB / 445.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.33e-05/0.305, allocations: 20 kB / 445.2 MB, free: 13.11 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.0009689/0.306, allocations: 0.9307 MB / 446.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002931/0.3063, allocations: 268.4 kB / 446.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/0.3077, allocations: 0.806 MB / 447.2 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.3077, allocations: 4 kB / 447.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3077, allocations: 0 / 447.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3077, allocations: 4 kB / 447.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.3092, allocations: 1.473 MB / 448.7 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.3092, allocations: 3.938 kB / 448.7 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004312/0.3097, allocations: 95.88 kB / 448.8 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004489/0.3101, allocations: 92.72 kB / 448.9 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.715e-05/0.3102, allocations: 15.98 kB / 448.9 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006129/0.3108, allocations: 0.6343 MB / 449.5 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3108, allocations: 4 kB / 449.5 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.3125, allocations: 1.073 MB / 450.6 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009084/0.3134, allocations: 489.6 kB / 451.1 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001564/0.3136, allocations: 12 kB / 451.1 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004676/0.3141, allocations: 23.98 kB / 451.1 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.354e-05/0.3141, allocations: 28.39 kB / 451.2 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/0.3142, allocations: 15.98 kB / 451.2 MB, free: 7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004272/0.3185, allocations: 3.982 MB / 455.2 MB, free: 3.027 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.003e-06/0.3185, allocations: 4 kB / 455.2 MB, free: 3.023 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006616/0.3191, allocations: 215.9 kB / 455.4 MB, free: 2.812 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.0009805/0.3201, allocations: 428.8 kB / 455.8 MB, free: 2.523 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007972/0.3209, allocations: 380.8 kB / 456.2 MB, free: 2.152 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3209, allocations: 0 / 456.2 MB, free: 2.152 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004546/0.3214, allocations: 222.9 kB / 456.4 MB, free: 1.938 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009925/0.3224, allocations: 185.7 kB / 456.6 MB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00639/0.3288, allocations: 5.416 MB / 462 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/0.3303, allocations: 1.825 MB / 463.8 MB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004545/0.3308, allocations: 279.8 kB / 464.1 MB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002447/0.331, allocations: 91.42 kB / 464.2 MB, free: 10.07 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.331, allocations: 0 / 464.2 MB, free: 10.07 MB / 382.1 MB Notification: Performance of Templates: time 0.03079/0.3618, allocations: 15.55 MB / 479.7 MB, free: 10.57 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