Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002698/0.002699, allocations: 181.6 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.801/2.801, allocations: 205.4 MB / 223.6 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00548/0.00548, allocations: 85.05 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000591/0.0005912, allocations: 8 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5024/0.5031, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.152/0.6551, allocations: 90.15 MB / 465.9 MB, free: 6.465 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003974/0.6556, allocations: 87.95 kB / 466 MB, free: 6.379 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1117/0.7673, allocations: 15.52 MB / 481.5 MB, free: 6.777 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.017e-06/0.7674, allocations: 0 / 481.5 MB, free: 6.777 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.915e-05/0.7674, allocations: 12 kB / 481.5 MB, free: 6.766 MB / 362.7 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.00298/0.7704, allocations: 0.9592 MB / 482.5 MB, free: 5.754 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.339e-05/0.7705, allocations: 12.03 kB / 482.5 MB, free: 5.742 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002658/0.7708, allocations: 76 kB / 482.5 MB, free: 5.668 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/0.7722, allocations: 0.5145 MB / 483.1 MB, free: 5.113 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.7724, allocations: 71.58 kB / 483.1 MB, free: 5.035 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003091/0.7727, allocations: 76.72 kB / 483.2 MB, free: 4.961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001961/0.7747, allocations: 0.5982 MB / 483.8 MB, free: 4.344 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.7747, allocations: 0 / 483.8 MB, free: 4.344 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.7748, allocations: 35.94 kB / 483.8 MB, free: 4.309 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.289e-05/0.7749, allocations: 12 kB / 483.8 MB, free: 4.297 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001983/0.7769, allocations: 0.5205 MB / 484.4 MB, free: 3.773 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007373/0.7843, allocations: 2.335 MB / 486.7 MB, free: 1.336 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00179/0.7861, allocations: 486 kB / 487.2 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008802/0.7871, allocations: 278.1 kB / 487.4 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.447e-05/0.7871, allocations: 7.984 kB / 487.5 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.611e-05/0.7872, allocations: 38.56 kB / 487.5 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 4.508e-06/0.7872, allocations: 0 / 487.5 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.01955/0.8068, allocations: 3.696 MB / 491.2 MB, free: 12.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.998e-05/0.8069, allocations: 89.61 kB / 491.3 MB, free: 12.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.8083, allocations: 0.537 MB / 491.8 MB, free: 12.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.8084, allocations: 33.7 kB / 491.8 MB, free: 12.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003575/0.8088, allocations: 312.4 kB / 492.2 MB, free: 11.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003194/0.8091, allocations: 204.9 kB / 492.4 MB, free: 11.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.943e-05/0.8092, allocations: 12 kB / 492.4 MB, free: 11.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002642/0.8095, allocations: 370.8 kB / 492.7 MB, free: 11.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.8106, allocations: 249.2 kB / 493 MB, free: 10.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/0.8117, allocations: 351.5 kB / 493.3 MB, free: 10.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002113/0.8139, allocations: 0.609 MB / 493.9 MB, free: 9.871 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.8139, allocations: 0 / 493.9 MB, free: 9.871 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002815/0.8167, allocations: 0.7452 MB / 494.7 MB, free: 9.113 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.098e-05/0.8168, allocations: 15.88 kB / 494.7 MB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.8168, allocations: 0 / 494.7 MB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003524/0.8172, allocations: 40.91 kB / 494.7 MB, free: 9.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.8185, allocations: 167.8 kB / 494.9 MB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/0.8207, allocations: 1.333 MB / 496.2 MB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.822, allocations: 48.03 kB / 496.3 MB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.638e-05/0.8221, allocations: 27.98 kB / 496.3 MB, free: 7.352 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (75): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007363/0.8228, allocations: 205.6 kB / 496.5 MB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002926/0.8231, allocations: 59.25 kB / 496.6 MB, free: 7.082 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003362/0.8265, allocations: 0.857 MB / 497.4 MB, free: 6.215 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/0.8265, allocations: 8 kB / 497.4 MB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.8266, allocations: 0 / 497.4 MB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.8266, allocations: 3.984 kB / 497.4 MB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007141/0.8337, allocations: 1.933 MB / 499.4 MB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.8338, allocations: 0 / 499.4 MB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008896/0.8347, allocations: 111.9 kB / 499.5 MB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004017/0.8388, allocations: 0.4991 MB / 500 MB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001696/0.839, allocations: 23.98 kB / 500 MB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008634/0.8476, allocations: 2.94 MB / 0.4911 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.8477, allocations: 64 / 0.4911 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4651/1.313, allocations: 1.402 MB / 0.4925 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/1.314, allocations: 206.4 kB / 0.4927 GB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001724/1.314, allocations: 11.5 kB / 0.4927 GB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/1.315, allocations: 48.62 kB / 0.4928 GB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003211/1.316, allocations: 51.05 kB / 0.4928 GB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.753e-05/1.316, allocations: 19 kB / 0.4928 GB, free: 106.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001084/1.317, allocations: 386.7 kB / 0.4932 GB, free: 106 MB / 378.7 MB Notification: Performance of sort global known variables: time 3e-07/1.317, allocations: 0 / 0.4932 GB, free: 106 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001665/1.318, allocations: 194.6 kB / 0.4934 GB, free: 106 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.000499/1.319, allocations: 163.9 kB / 0.4935 GB, free: 105.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002666/1.322, allocations: 0.7497 MB / 0.4943 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/1.322, allocations: 1.125 kB / 0.4943 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001876/1.324, allocations: 0.5279 MB / 0.4948 GB, free: 105.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/1.325, allocations: 91.66 kB / 0.4949 GB, free: 105.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005862/1.331, allocations: 1.86 MB / 0.4967 GB, free: 104.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009046/1.332, allocations: 0.9025 MB / 0.4976 GB, free: 104.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006685/1.333, allocations: 56.05 kB / 0.4976 GB, free: 104.2 MB / 378.7 MB Notification: Performance of SimCode: time 2.154e-06/1.333, allocations: 0 / 0.4976 GB, free: 104.2 MB / 378.7 MB Notification: Performance of Templates: time 0.03981/1.373, allocations: 11.72 MB / 0.5091 GB, free: 102.3 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches