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.001142/0.001142, allocations: 106.2 kB / 17.06 MB, free: 6.023 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.001009/0.001009, allocations: 191 kB / 18 MB, free: 5.105 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.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009619/0.0009619, allocations: 51.91 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2572, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005732/0.263, allocations: 4.365 MB / 405.1 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002813/0.2658, allocations: 1.578 MB / 406.7 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003592/0.2662, allocations: 11.94 kB / 406.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004021/0.2666, allocations: 130.8 kB / 406.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000823/0.2675, allocations: 369.6 kB / 407.2 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.2679, allocations: 219.7 kB / 407.4 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008967/0.2688, allocations: 0.9892 MB / 408.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000358/0.2692, allocations: 242.6 kB / 408.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003899/0.2696, allocations: 382.7 kB / 409 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004406/0.2701, allocations: 422.3 kB / 409.4 MB, free: 176 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.2702, allocations: 96 kB / 409.5 MB, free: 80 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003333/0.2705, allocations: 215.9 kB / 409.7 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.2707, allocations: 199.3 kB / 409.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003572/0.271, allocations: 414 kB / 410.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001105/0.2721, allocations: 1.168 MB / 411.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.2722, allocations: 0 / 411.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2722, allocations: 3.938 kB / 411.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.2722, allocations: 0 / 411.5 MB, free: 14.09 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002302/0.2745, allocations: 1.083 MB / 412.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.2745, allocations: 12.03 kB / 412.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001498/0.2747, allocations: 80 kB / 412.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007319/0.2754, allocations: 0.5184 MB / 413.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.271e-05/0.2755, allocations: 75.56 kB / 413.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001965/0.2757, allocations: 64.5 kB / 413.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.2768, allocations: 0.6019 MB / 413.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.2769, allocations: 4 kB / 413.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.712e-05/0.2769, allocations: 20 kB / 413.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/0.2769, allocations: 19.94 kB / 413.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.2781, allocations: 0.5243 MB / 414.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003351/0.2814, allocations: 2.291 MB / 416.8 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009777/0.2824, allocations: 481.1 kB / 417.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005381/0.283, allocations: 266.8 kB / 417.5 MB, free: 7.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.283, allocations: 8 kB / 417.5 MB, free: 7.812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.283, allocations: 38.56 kB / 417.5 MB, free: 7.766 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.524e-06/0.283, allocations: 3.938 kB / 417.5 MB, free: 7.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01324/0.2963, allocations: 3.547 MB / 421.1 MB, free: 4.121 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.2964, allocations: 85.67 kB / 421.2 MB, free: 4.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007519/0.2972, allocations: 0.537 MB / 421.7 MB, free: 3.473 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.328e-05/0.2972, allocations: 37.7 kB / 421.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.2975, allocations: 312.3 kB / 422 MB, free: 3.121 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002234/0.2977, allocations: 208.9 kB / 422.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002112/0.2979, allocations: 122.2 kB / 422.4 MB, free: 2.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.2981, allocations: 362.8 kB / 422.7 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005827/0.2987, allocations: 245.2 kB / 423 MB, free: 2.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006334/0.2993, allocations: 360.3 kB / 423.3 MB, free: 1.801 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.3006, allocations: 0.602 MB / 423.9 MB, free: 1.164 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3006, allocations: 0 / 423.9 MB, free: 1.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001544/0.3022, allocations: 0.7413 MB / 424.7 MB, free: 420 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.3022, allocations: 7.984 kB / 424.7 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.3022, allocations: 4 kB / 424.7 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001818/0.3024, allocations: 28.84 kB / 424.7 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008197/0.3032, allocations: 171.9 kB / 424.9 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001168/0.3044, allocations: 1.422 MB / 426.3 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005726/0.305, allocations: 47.91 kB / 426.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.718e-05/0.305, allocations: 27.92 kB / 426.4 MB, free: 14.56 MB / 350.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.0002898/0.3053, allocations: 201.8 kB / 426.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.3055, allocations: 59.39 kB / 426.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001806/0.3073, allocations: 0.8375 MB / 427.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.575e-06/0.3073, allocations: 7.938 kB / 427.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3073, allocations: 3.984 kB / 427.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.3073, allocations: 4 kB / 427.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00358/0.3109, allocations: 1.853 MB / 429.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.3109, allocations: 3.984 kB / 429.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005114/0.3115, allocations: 103.9 kB / 429.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002309/0.3138, allocations: 468.4 kB / 429.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-05/0.3138, allocations: 15.98 kB / 429.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004992/0.3188, allocations: 3.153 MB / 433.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.3189, allocations: 3.938 kB / 433.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003013/0.3219, allocations: 1.371 MB / 434.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003509/0.3223, allocations: 216.2 kB / 434.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.472e-05/0.3224, allocations: 16 kB / 434.7 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006096/0.323, allocations: 39.95 kB / 434.7 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.3231, allocations: 48.5 kB / 434.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.069e-05/0.3232, allocations: 16 kB / 434.8 MB, free: 5.898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004914/0.3237, allocations: 390.8 kB / 435.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.3237, allocations: 4 kB / 435.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000769/0.3245, allocations: 192 kB / 435.3 MB, free: 5.328 MB / 350.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.0002858/0.3248, allocations: 151.1 kB / 435.5 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.3263, allocations: 0.7324 MB / 436.2 MB, free: 4.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3263, allocations: 0 / 436.2 MB, free: 4.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008893/0.3272, allocations: 0.5179 MB / 436.7 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007567/0.328, allocations: 85.94 kB / 436.8 MB, free: 3.812 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002614/0.3306, allocations: 1.467 MB / 438.3 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004085/0.331, allocations: 0.9043 MB / 439.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003092/0.3313, allocations: 76.81 kB / 439.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001756/0.3315, allocations: 47.41 kB / 439.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of SimCode: time 2.355e-06/0.3315, allocations: 0 / 439.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of Templates: time 0.01692/0.3485, allocations: 10.39 MB / 449.7 MB, free: 6.98 MB / 366.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