Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00104/0.00104, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 63.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3479, allocations: 50.54 MB / 409.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005245/0.3532, allocations: 4.381 MB / 413.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002925/0.3561, allocations: 1.644 MB / 415.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003505/0.3565, allocations: 11.94 kB / 415.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003982/0.3569, allocations: 134.8 kB / 415.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008445/0.3578, allocations: 353.6 kB / 415.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004843/0.3583, allocations: 247.6 kB / 416 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008659/0.3592, allocations: 0.9745 MB / 417 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003533/0.3596, allocations: 241.2 kB / 417.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004545/0.36, allocations: 386.7 kB / 417.6 MB, free: 9.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004816/0.3605, allocations: 426.3 kB / 418 MB, free: 8.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.3607, allocations: 100 kB / 418.1 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004007/0.3611, allocations: 219.9 kB / 418.3 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.3612, allocations: 191.3 kB / 418.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003532/0.3616, allocations: 414.1 kB / 418.9 MB, free: 7.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.3627, allocations: 1.177 MB / 420.1 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3627, allocations: 0 / 420.1 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3627, allocations: 0 / 420.1 MB, free: 6.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.3627, allocations: 0 / 420.1 MB, free: 6.586 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.002254/0.365, allocations: 1.095 MB / 421.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3651, allocations: 8.031 kB / 421.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.3653, allocations: 92.08 kB / 421.3 MB, free: 5.344 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007462/0.3661, allocations: 0.5184 MB / 421.8 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.278e-05/0.3662, allocations: 67.58 kB / 421.9 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000195/0.3664, allocations: 88.31 kB / 421.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.3674, allocations: 0.5981 MB / 422.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.3675, allocations: 3.938 kB / 422.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.744e-05/0.3675, allocations: 27.98 kB / 422.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.3676, allocations: 12 kB / 422.6 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.3686, allocations: 0.5282 MB / 423.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003157/0.3718, allocations: 2.287 MB / 425.4 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009658/0.3728, allocations: 488.4 kB / 425.9 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000531/0.3733, allocations: 266 kB / 426.1 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.3734, allocations: 7.984 kB / 426.1 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.3734, allocations: 38.56 kB / 426.2 MB, free: 228 kB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.884e-06/0.3734, allocations: 4 kB / 426.2 MB, free: 224 kB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01262/0.386, allocations: 3.542 MB / 429.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.3861, allocations: 89.67 kB / 429.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006411/0.3868, allocations: 0.5332 MB / 430.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.872e-05/0.3868, allocations: 33.7 kB / 430.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.387, allocations: 320.2 kB / 430.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.3872, allocations: 208.9 kB / 430.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.3874, allocations: 114.2 kB / 431 MB, free: 11.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.3875, allocations: 366.8 kB / 431.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005437/0.3881, allocations: 249.2 kB / 431.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005886/0.3886, allocations: 344.4 kB / 431.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.3898, allocations: 0.6019 MB / 432.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.3898, allocations: 0 / 432.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001501/0.3913, allocations: 0.7451 MB / 433.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.3914, allocations: 16.05 kB / 433.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3914, allocations: 4 kB / 433.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002003/0.3916, allocations: 28.84 kB / 433.3 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008128/0.3924, allocations: 159.8 kB / 433.5 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/0.3935, allocations: 1.43 MB / 434.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005827/0.3941, allocations: 43.97 kB / 435 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.886e-05/0.3941, allocations: 27.98 kB / 435 MB, free: 7.035 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.000275/0.3944, allocations: 197.7 kB / 435.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.3945, allocations: 63.25 kB / 435.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.3963, allocations: 0.8336 MB / 436.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.3963, allocations: 19.92 kB / 436.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.3963, allocations: 0 / 436.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3963, allocations: 0 / 436.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003482/0.3998, allocations: 1.857 MB / 438 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3998, allocations: 0 / 438 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005108/0.4004, allocations: 111.8 kB / 438.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002279/0.4026, allocations: 468.2 kB / 438.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.646e-05/0.4027, allocations: 23.92 kB / 438.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004803/0.4075, allocations: 3.152 MB / 441.7 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4075, allocations: 0 / 441.7 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002865/0.4104, allocations: 1.367 MB / 443.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002574/0.4107, allocations: 204.3 kB / 443.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.001e-05/0.4108, allocations: 12 kB / 443.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005927/0.4114, allocations: 47.95 kB / 443.3 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.4115, allocations: 48.44 kB / 443.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.242e-05/0.4116, allocations: 23.98 kB / 443.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004465/0.412, allocations: 390.9 kB / 443.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.412, allocations: 0 / 443.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006889/0.4127, allocations: 192.1 kB / 444 MB, free: 13.8 MB / 366.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.0002698/0.413, allocations: 147.1 kB / 444.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.4145, allocations: 0.7325 MB / 444.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.4145, allocations: 0 / 444.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008765/0.4154, allocations: 0.5216 MB / 445.4 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006612/0.416, allocations: 106 kB / 445.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.4186, allocations: 1.464 MB / 446.9 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004154/0.419, allocations: 0.9042 MB / 447.8 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002989/0.4193, allocations: 68.81 kB / 447.9 MB, free: 9.777 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.4195, allocations: 51.41 kB / 448 MB, free: 9.727 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4195, allocations: 0 / 448 MB, free: 9.727 MB / 366.1 MB Notification: Performance of Templates: time 0.01649/0.436, allocations: 10.4 MB / 458.4 MB, free: 15.41 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches