Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008026/0.0008025, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009677/0.0009678, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.7 MB / 247.5 MB, free: 9.504 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002291/0.000229, allocations: 4 kB / 308.4 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1031, allocations: 51.53 MB / 359.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004399/0.1075, allocations: 3.073 MB / 363 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003447/0.111, allocations: 1.641 MB / 364.6 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004376/0.1115, allocations: 4 kB / 364.6 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002911/0.1144, allocations: 1.852 MB / 366.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008021/0.1153, allocations: 186.9 kB / 366.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009579/0.1162, allocations: 283 kB / 367 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00252/0.1188, allocations: 1.725 MB / 368.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002719/0.119, allocations: 120.4 kB / 368.8 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005507/0.1196, allocations: 281 kB / 369.1 MB, free: 3.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005735/0.1202, allocations: 294.8 kB / 369.4 MB, free: 3.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001316/0.1203, allocations: 24 kB / 369.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003044/0.1206, allocations: 67.98 kB / 369.5 MB, free: 3.484 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008328/0.1215, allocations: 0.8257 MB / 370.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001309/0.1228, allocations: 0.9245 MB / 371.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2247/0.3475, allocations: 2.098 MB / 373.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.3476, allocations: 1.266 kB / 373.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3476, allocations: 0.8438 kB / 373.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001042/0.3477, allocations: 0 / 373.3 MB, free: 11.99 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00606/0.3538, allocations: 2.425 MB / 375.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.872e-05/0.3539, allocations: 10.64 kB / 375.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001109/0.355, allocations: 298.5 kB / 376 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004878/0.3599, allocations: 1.829 MB / 377.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.659e-05/0.36, allocations: 59.39 kB / 377.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000284/0.3603, allocations: 53.22 kB / 378 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.3614, allocations: 395.3 kB / 378.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.3614, allocations: 3.781 kB / 378.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.478e-05/0.3615, allocations: 15.88 kB / 378.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.3615, allocations: 10.97 kB / 378.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008291/0.3623, allocations: 330.8 kB / 378.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005277/0.3676, allocations: 2.92 MB / 381.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006338/0.3683, allocations: 316.2 kB / 381.9 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/0.3686, allocations: 162.8 kB / 382.1 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.879e-05/0.3687, allocations: 10.34 kB / 382.1 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.3687, allocations: 37.62 kB / 382.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.044e-06/0.3687, allocations: 1.469 kB / 382.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.004812/0.3735, allocations: 2.419 MB / 384.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.3736, allocations: 82.95 kB / 384.6 MB, free: 7.496 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007296/0.3809, allocations: 5.449 MB / 390.1 MB, free: 5.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.865e-05/0.381, allocations: 36.55 kB / 390.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008931/0.3819, allocations: 1.186 MB / 391.3 MB, free: 4.871 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.382, allocations: 174.2 kB / 391.5 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.198e-05/0.382, allocations: 51.45 kB / 391.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.329e-05/0.3821, allocations: 323.5 kB / 391.8 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003265/0.3825, allocations: 142.2 kB / 392 MB, free: 4.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.3828, allocations: 224.6 kB / 392.2 MB, free: 4.211 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006356/0.3834, allocations: 386.5 kB / 392.6 MB, free: 4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3834, allocations: 1.375 kB / 392.6 MB, free: 4 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001267/0.3847, allocations: 0.6924 MB / 393.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.3847, allocations: 5.812 kB / 393.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.3848, allocations: 3 kB / 393.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.3848, allocations: 4.969 kB / 393.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000498/0.3853, allocations: 127.2 kB / 393.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.3853, allocations: 8.719 kB / 393.4 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000493/0.3858, allocations: 14.2 kB / 393.4 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.539e-05/0.3859, allocations: 15.91 kB / 393.5 MB, free: 3.656 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001064/0.3869, allocations: 0.9249 MB / 394.4 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002809/0.3872, allocations: 273.9 kB / 394.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.3885, allocations: 0.8091 MB / 395.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.3885, allocations: 6.25 kB / 395.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3885, allocations: 0 / 395.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.3885, allocations: 5.812 kB / 395.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001583/0.3901, allocations: 1.472 MB / 396.9 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.3901, allocations: 5.938 kB / 396.9 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003965/0.3905, allocations: 103.4 kB / 397 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003171/0.3908, allocations: 95.7 kB / 397.1 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.64e-05/0.3909, allocations: 7.188 kB / 397.1 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003953/0.3913, allocations: 0.6376 MB / 397.8 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3913, allocations: 0 / 397.8 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.3927, allocations: 1.084 MB / 398.9 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005517/0.3932, allocations: 499.4 kB / 399.4 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/0.3934, allocations: 11.06 kB / 399.4 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004723/0.3939, allocations: 20.52 kB / 399.4 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.764e-05/0.394, allocations: 35.95 kB / 399.4 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.394, allocations: 21.48 kB / 399.4 MB, free: 472 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.004828/0.3988, allocations: 3.988 MB / 403.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3988, allocations: 0 / 403.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007822/0.3996, allocations: 212 kB / 403.6 MB, free: 12.73 MB / 318.1 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 (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 {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001002/0.4006, allocations: 412 kB / 404 MB, free: 12.47 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008538/0.4015, allocations: 383.9 kB / 404.4 MB, free: 12.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4015, allocations: 0 / 404.4 MB, free: 12.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004559/0.402, allocations: 222.2 kB / 404.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.4033, allocations: 198.6 kB / 404.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008497/0.4118, allocations: 6.356 MB / 411.2 MB, free: 5.316 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00168/0.4135, allocations: 1.818 MB / 413 MB, free: 3.465 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004958/0.414, allocations: 103.4 kB / 413.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of SimCode: time 1.122e-06/0.414, allocations: 0 / 413.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of Templates: time 0.06428/0.4783, allocations: 35.5 MB / 448.6 MB, free: 15.86 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches