Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 175.3 kB / 17.4 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 223.3 MB / 241.4 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009172/0.0009174, allocations: 97.42 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004261, allocations: 8 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2709, allocations: 50.4 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.4163, allocations: 86.62 MB / 489.4 MB, free: 9.723 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003523/0.4167, allocations: 91.94 kB / 489.5 MB, free: 9.633 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2799/0.6966, allocations: 39.74 MB / 0.5168 GB, free: 97.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.6967, allocations: 0 / 0.5168 GB, free: 97.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002253/0.6969, allocations: 37.06 kB / 0.5168 GB, free: 97.63 MB / 378.7 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.003803/0.7007, allocations: 2.57 MB / 0.5193 GB, free: 95.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.7008, allocations: 12.03 kB / 0.5193 GB, free: 95.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000471/0.7013, allocations: 281.4 kB / 0.5196 GB, free: 94.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003021/0.7043, allocations: 2.033 MB / 0.5216 GB, free: 92.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.038e-05/0.7044, allocations: 66.81 kB / 0.5217 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/0.7045, allocations: 40.75 kB / 0.5217 GB, free: 92.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005712/0.7051, allocations: 403.1 kB / 0.5221 GB, free: 92.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.7051, allocations: 0 / 0.5221 GB, free: 92.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/0.7052, allocations: 16 kB / 0.5221 GB, free: 92.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.7052, allocations: 8 kB / 0.5221 GB, free: 92.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005766/0.7058, allocations: 327.7 kB / 0.5224 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003655/0.7094, allocations: 3.105 MB / 0.5255 GB, free: 88.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005005/0.7099, allocations: 319.9 kB / 0.5258 GB, free: 88.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002582/0.7102, allocations: 164.2 kB / 0.5259 GB, free: 88.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.7102, allocations: 4 kB / 0.5259 GB, free: 88.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.7103, allocations: 46.55 kB / 0.526 GB, free: 88.28 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 1.773e-06/0.7103, allocations: 0 / 0.526 GB, free: 88.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.00417/0.7145, allocations: 2.583 MB / 0.5285 GB, free: 85.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.7145, allocations: 85.58 kB / 0.5286 GB, free: 85.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007362/0.7219, allocations: 5.274 MB / 0.5337 GB, free: 80.24 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.349e-05/0.7219, allocations: 29.7 kB / 0.5337 GB, free: 80.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007734/0.7227, allocations: 1.187 MB / 0.5349 GB, free: 79.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.318e-05/0.7228, allocations: 173.4 kB / 0.5351 GB, free: 78.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.84e-05/0.7228, allocations: 8 kB / 0.5351 GB, free: 78.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.331e-05/0.7229, allocations: 326 kB / 0.5354 GB, free: 78.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002786/0.7232, allocations: 141.1 kB / 0.5355 GB, free: 78.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002832/0.7235, allocations: 212.8 kB / 0.5357 GB, free: 78.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005587/0.724, allocations: 371.4 kB / 0.5361 GB, free: 77.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.724, allocations: 0 / 0.5361 GB, free: 77.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009045/0.7249, allocations: 0.6801 MB / 0.5367 GB, free: 77.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.725, allocations: 11.94 kB / 0.5368 GB, free: 77.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.725, allocations: 4.219 kB / 0.5368 GB, free: 77.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.725, allocations: 7.984 kB / 0.5368 GB, free: 77.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004572/0.7255, allocations: 119.8 kB / 0.5369 GB, free: 76.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.7255, allocations: 4 kB / 0.5369 GB, free: 76.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004072/0.7259, allocations: 27.98 kB / 0.5369 GB, free: 76.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/0.7259, allocations: 16 kB / 0.5369 GB, free: 76.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (61): * Single equations (assignments): 61 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008498/0.7268, allocations: 0.923 MB / 0.5378 GB, free: 75.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003094/0.7271, allocations: 292.4 kB / 0.5381 GB, free: 75.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00117/0.7283, allocations: 0.7978 MB / 0.5389 GB, free: 74.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.7283, allocations: 4 kB / 0.5389 GB, free: 74.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.7283, allocations: 11.92 kB / 0.5389 GB, free: 74.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.7283, allocations: 0 / 0.5389 GB, free: 74.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.7297, allocations: 1.698 MB / 0.5406 GB, free: 73.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.7297, allocations: 4 kB / 0.5406 GB, free: 73.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004005/0.7301, allocations: 95.88 kB / 0.5407 GB, free: 73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002974/0.7305, allocations: 92.73 kB / 0.5407 GB, free: 72.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.693e-05/0.7305, allocations: 15.94 kB / 0.5408 GB, free: 72.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004288/0.7309, allocations: 0.6459 MB / 0.5414 GB, free: 72.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.7309, allocations: 0 / 0.5414 GB, free: 72.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.7323, allocations: 1.089 MB / 0.5425 GB, free: 71.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008497/0.7332, allocations: 0.6772 MB / 0.5431 GB, free: 70.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/0.7334, allocations: 16 kB / 0.5431 GB, free: 70.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004629/0.7338, allocations: 31.92 kB / 0.5432 GB, free: 70.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.454e-05/0.7339, allocations: 32.39 kB / 0.5432 GB, free: 70.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.7339, allocations: 12 kB / 0.5432 GB, free: 70.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003736/0.7377, allocations: 3.844 MB / 0.547 GB, free: 66.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7377, allocations: 0 / 0.547 GB, free: 66.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007343/0.7384, allocations: 324 kB / 0.5473 GB, free: 66.17 MB / 378.7 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 (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 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000878/0.7393, allocations: 439.7 kB / 0.5477 GB, free: 65.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006274/0.74, allocations: 377.1 kB / 0.548 GB, free: 65.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.74, allocations: 0 / 0.548 GB, free: 65.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003751/0.7403, allocations: 218.3 kB / 0.5483 GB, free: 65.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.7416, allocations: 203.6 kB / 0.5485 GB, free: 65.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005735/0.7473, allocations: 6.246 MB / 0.5545 GB, free: 58.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.7485, allocations: 1.818 MB / 0.5563 GB, free: 56.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005054/0.749, allocations: 383.6 kB / 0.5567 GB, free: 56.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003343/0.7494, allocations: 139.4 kB / 0.5568 GB, free: 56.46 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.7494, allocations: 0 / 0.5568 GB, free: 56.46 MB / 378.7 MB Notification: Performance of Templates: time 0.03007/0.7795, allocations: 20.08 MB / 0.5764 GB, free: 36.41 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches