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.0009216/0.0009217, allocations: 89.61 kB / 16.65 MB, free: 6.59 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.001166/0.001166, allocations: 182.5 kB / 17.56 MB, free: 6.203 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.373/1.373, allocations: 223.3 MB / 241.6 MB, free: 116 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002363/0.0002363, allocations: 11.94 kB / 301.4 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08828/0.08854, allocations: 50.41 MB / 351.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004485/0.09306, allocations: 3.975 MB / 355.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002709/0.0958, allocations: 1.586 MB / 357.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004732/0.0963, allocations: 11.94 kB / 357.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003929/0.09671, allocations: 95.3 kB / 357.5 MB, free: 14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009454/0.09768, allocations: 306.4 kB / 357.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00047/0.09816, allocations: 203.8 kB / 358 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.09918, allocations: 0.9229 MB / 358.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000318/0.0995, allocations: 210.2 kB / 359.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000374/0.09989, allocations: 318.6 kB / 359.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004142/0.1003, allocations: 370.3 kB / 359.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.698e-05/0.1004, allocations: 44 kB / 359.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003057/0.1007, allocations: 163.9 kB / 360 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.1008, allocations: 139.3 kB / 360.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003208/0.1012, allocations: 383.8 kB / 360.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009094/0.1021, allocations: 1.086 MB / 361.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1021, allocations: 0 / 361.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1021, allocations: 0 / 361.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.1021, allocations: 0 / 361.6 MB, free: 9.875 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.002055/0.1042, allocations: 0.9819 MB / 362.6 MB, free: 8.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.1042, allocations: 12.03 kB / 362.6 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.1044, allocations: 76.09 kB / 362.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006641/0.105, allocations: 0.5029 MB / 363.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.133e-05/0.1051, allocations: 71.58 kB / 363.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001925/0.1053, allocations: 76.47 kB / 363.3 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.1065, allocations: 0.6136 MB / 363.9 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.1065, allocations: 3.938 kB / 363.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.713e-05/0.1065, allocations: 20 kB / 364 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.1066, allocations: 16 kB / 364 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.1077, allocations: 0.536 MB / 364.5 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003271/0.111, allocations: 2.322 MB / 366.8 MB, free: 4.422 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.112, allocations: 499.5 kB / 367.3 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005534/0.1126, allocations: 274 kB / 367.6 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.1126, allocations: 11.98 kB / 367.6 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.1126, allocations: 38.56 kB / 367.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.954e-06/0.1127, allocations: 0 / 367.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1663/0.2789, allocations: 3.697 MB / 371.3 MB, free: 24.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.279, allocations: 84.61 kB / 371.4 MB, free: 24.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008436/0.2799, allocations: 0.5356 MB / 371.9 MB, free: 24.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.924e-05/0.28, allocations: 37.52 kB / 372 MB, free: 24.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.2801, allocations: 312.9 kB / 372.3 MB, free: 24.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.2803, allocations: 214.9 kB / 372.5 MB, free: 23.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.105e-05/0.2804, allocations: 54.14 kB / 372.6 MB, free: 23.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.25e-05/0.2805, allocations: 373.2 kB / 372.9 MB, free: 23.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005842/0.2811, allocations: 250.5 kB / 373.2 MB, free: 23.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006121/0.2817, allocations: 360.7 kB / 373.5 MB, free: 23.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001327/0.283, allocations: 0.6209 MB / 374.1 MB, free: 23.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.283, allocations: 8.156 kB / 374.1 MB, free: 23.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00151/0.2846, allocations: 0.7539 MB / 374.9 MB, free: 23.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.2846, allocations: 5.844 kB / 374.9 MB, free: 23.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.2846, allocations: 3.531 kB / 374.9 MB, free: 23.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001716/0.2848, allocations: 37.2 kB / 374.9 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007816/0.2856, allocations: 173.3 kB / 375.1 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00073/0.2863, allocations: 1.328 MB / 376.4 MB, free: 21.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005705/0.2869, allocations: 48.5 kB / 376.5 MB, free: 21.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.913e-05/0.2869, allocations: 25.44 kB / 376.5 MB, free: 21.8 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.0002394/0.2872, allocations: 205.2 kB / 376.7 MB, free: 21.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.2873, allocations: 62.44 kB / 376.8 MB, free: 21.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001776/0.2891, allocations: 0.8649 MB / 377.6 MB, free: 21.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.2891, allocations: 7.156 kB / 377.6 MB, free: 21.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.2891, allocations: 2.906 kB / 377.6 MB, free: 21.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.2891, allocations: 5.109 kB / 377.7 MB, free: 21.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003532/0.2927, allocations: 1.899 MB / 379.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.2927, allocations: 2.75 kB / 379.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005258/0.2932, allocations: 112 kB / 379.7 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002617/0.2959, allocations: 0.4968 MB / 380.2 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.042e-05/0.2959, allocations: 18.55 kB / 380.2 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004827/0.3008, allocations: 2.956 MB / 383.1 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3008, allocations: 2 kB / 383.1 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003337/0.3041, allocations: 1.407 MB / 384.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002862/0.3044, allocations: 207.2 kB / 384.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.172e-05/0.3045, allocations: 16.36 kB / 384.8 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006885/0.3052, allocations: 49.14 kB / 384.8 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.3054, allocations: 50.27 kB / 384.9 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-05/0.3054, allocations: 18.78 kB / 384.9 MB, free: 17.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004933/0.3059, allocations: 388 kB / 385.3 MB, free: 16.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3059, allocations: 0 / 385.3 MB, free: 16.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007675/0.3067, allocations: 186.2 kB / 385.4 MB, free: 16.93 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.0002469/0.307, allocations: 163.2 kB / 385.6 MB, free: 16.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001722/0.3087, allocations: 0.7548 MB / 386.4 MB, free: 16.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.3087, allocations: 5 kB / 386.4 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009173/0.3097, allocations: 0.5273 MB / 386.9 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007503/0.3104, allocations: 87.28 kB / 387 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002753/0.3132, allocations: 1.868 MB / 388.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.3136, allocations: 0.9001 MB / 389.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003453/0.3139, allocations: 74.55 kB / 389.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.3141, allocations: 52.33 kB / 389.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3141, allocations: 1 kB / 389.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of Templates: time 0.01357/0.3277, allocations: 9.547 MB / 399.4 MB, free: 8.676 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/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