Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 114.5 kB / 17.69 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008692/0.0008692, allocations: 48.02 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1088, allocations: 49.45 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005626/0.1145, allocations: 4.346 MB / 355.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002513/0.117, allocations: 1.598 MB / 357.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002432/0.1173, allocations: 11.94 kB / 357.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002859/0.1176, allocations: 122.8 kB / 357.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006624/0.1183, allocations: 357.6 kB / 357.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003687/0.1187, allocations: 223.7 kB / 358.2 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008751/0.1196, allocations: 0.9899 MB / 359.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003341/0.1199, allocations: 249.3 kB / 359.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003707/0.1203, allocations: 366.8 kB / 359.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004755/0.1208, allocations: 426.3 kB / 360.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.1209, allocations: 96 kB / 360.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000333/0.1212, allocations: 215.9 kB / 360.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.1214, allocations: 207.3 kB / 360.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003401/0.1217, allocations: 410.1 kB / 361.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.1228, allocations: 1.172 MB / 362.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1228, allocations: 0 / 362.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1228, allocations: 0 / 362.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.1228, allocations: 0 / 362.2 MB, free: 8.922 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002295/0.1251, allocations: 1.103 MB / 363.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1252, allocations: 11.89 kB / 363.4 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.1253, allocations: 80 kB / 363.4 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007651/0.1261, allocations: 0.5069 MB / 363.9 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.805e-05/0.1262, allocations: 71.58 kB / 364 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.1264, allocations: 72.39 kB / 364.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.1274, allocations: 0.6058 MB / 364.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.1274, allocations: 4 kB / 364.7 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.2e-05/0.1275, allocations: 20 kB / 364.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.1275, allocations: 16 kB / 364.7 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.1286, allocations: 0.5243 MB / 365.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003282/0.1319, allocations: 2.291 MB / 367.5 MB, free: 3.402 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009761/0.1329, allocations: 477.1 kB / 368 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005391/0.1334, allocations: 271.2 kB / 368.3 MB, free: 2.645 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-05/0.1335, allocations: 4 kB / 368.3 MB, free: 2.641 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.1335, allocations: 34.56 kB / 368.3 MB, free: 2.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.144e-06/0.1335, allocations: 4 kB / 368.3 MB, free: 2.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.2008/0.3343, allocations: 3.539 MB / 371.9 MB, free: 25.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.3344, allocations: 84.05 kB / 371.9 MB, free: 25.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008406/0.3353, allocations: 0.5344 MB / 372.5 MB, free: 25.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.935e-05/0.3353, allocations: 35.23 kB / 372.5 MB, free: 25.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.3355, allocations: 310.8 kB / 372.8 MB, free: 24.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.3357, allocations: 218.6 kB / 373 MB, free: 24.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002142/0.3359, allocations: 108.1 kB / 373.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.336, allocations: 367 kB / 373.5 MB, free: 24.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005621/0.3366, allocations: 247.8 kB / 373.7 MB, free: 24.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006094/0.3372, allocations: 347 kB / 374.1 MB, free: 24.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/0.3384, allocations: 0.6017 MB / 374.7 MB, free: 23.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3384, allocations: 2.203 kB / 374.7 MB, free: 23.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00152/0.34, allocations: 0.7438 MB / 375.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.34, allocations: 10.31 kB / 375.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.34, allocations: 2.75 kB / 375.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001845/0.3402, allocations: 30.89 kB / 375.5 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008005/0.341, allocations: 162.6 kB / 375.6 MB, free: 23.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009158/0.342, allocations: 1.438 MB / 377.1 MB, free: 21.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005829/0.3426, allocations: 33.98 kB / 377.1 MB, free: 21.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-05/0.3426, allocations: 31.94 kB / 377.1 MB, free: 21.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000279/0.3429, allocations: 202 kB / 377.3 MB, free: 21.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.343, allocations: 58.23 kB / 377.4 MB, free: 21.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.3448, allocations: 0.8488 MB / 378.2 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.3448, allocations: 7.438 kB / 378.2 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3449, allocations: 1.375 kB / 378.2 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.3449, allocations: 6.047 kB / 378.2 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003687/0.3486, allocations: 1.848 MB / 380.1 MB, free: 20.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3486, allocations: 0 / 380.1 MB, free: 20.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005278/0.3491, allocations: 109.5 kB / 380.2 MB, free: 20.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002311/0.3514, allocations: 473.9 kB / 380.7 MB, free: 20.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.394e-05/0.3515, allocations: 17.95 kB / 380.7 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004455/0.356, allocations: 3.153 MB / 383.8 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.356, allocations: 5.156 kB / 383.8 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002889/0.3589, allocations: 1.365 MB / 385.2 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003369/0.3592, allocations: 210.4 kB / 385.4 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.551e-05/0.3593, allocations: 16.28 kB / 385.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00057/0.3599, allocations: 38.97 kB / 385.5 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.3601, allocations: 48.53 kB / 385.5 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.3601, allocations: 18.36 kB / 385.5 MB, free: 17.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004793/0.3606, allocations: 396.3 kB / 385.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3606, allocations: 1.062 kB / 385.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007633/0.3614, allocations: 186.2 kB / 386.1 MB, free: 16.86 MB / 302.1 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 (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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002339/0.3616, allocations: 148 kB / 386.2 MB, free: 16.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.363, allocations: 0.7317 MB / 387 MB, free: 16.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.363, allocations: 0 / 387 MB, free: 16.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008462/0.3639, allocations: 0.5298 MB / 387.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006145/0.3645, allocations: 99.19 kB / 387.6 MB, free: 16.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.3671, allocations: 1.454 MB / 389.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.3675, allocations: 0.9043 MB / 390 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003143/0.3679, allocations: 72.08 kB / 390 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001815/0.3681, allocations: 54.02 kB / 390.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3681, allocations: 0 / 390.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of Templates: time 0.01535/0.3834, allocations: 10.25 MB / 400.3 MB, free: 8.137 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches