Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001509/0.00151, allocations: 110.6 kB / 17.73 MB, free: 5.32 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.001689/0.001689, allocations: 190.9 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.537/1.537, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 63.91 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1102, allocations: 46.61 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.01228/0.1226, allocations: 4.3 MB / 379.4 MB, free: 260 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2068/0.3294, allocations: 1.63 MB / 381.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003821/0.3298, allocations: 12.84 kB / 381.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003658/0.3303, allocations: 131.6 kB / 381.2 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008177/0.3311, allocations: 352.8 kB / 381.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004504/0.3316, allocations: 235.7 kB / 381.8 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001088/0.3327, allocations: 0.981 MB / 382.8 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000393/0.3331, allocations: 238.7 kB / 383 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000543/0.3336, allocations: 371.1 kB / 383.4 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005245/0.3341, allocations: 431.7 kB / 383.8 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.3343, allocations: 96.84 kB / 383.9 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004136/0.3347, allocations: 217.5 kB / 384.1 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.3348, allocations: 196.6 kB / 384.3 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003355/0.3352, allocations: 415.4 kB / 384.7 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001381/0.3366, allocations: 1.173 MB / 385.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3366, allocations: 0 / 385.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3366, allocations: 0 / 385.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.848e-05/0.3366, allocations: 4 kB / 385.9 MB, free: 8.141 MB / 318.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.002375/0.339, allocations: 1.114 MB / 387 MB, free: 7.391 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.3391, allocations: 9.656 kB / 387 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.3392, allocations: 81.03 kB / 387.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007401/0.34, allocations: 0.5124 MB / 387.6 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.013e-05/0.3401, allocations: 73.64 kB / 387.7 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000208/0.3403, allocations: 74.69 kB / 387.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.3414, allocations: 0.5996 MB / 388.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.3414, allocations: 1.094 kB / 388.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.523e-05/0.3415, allocations: 21.97 kB / 388.3 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.3415, allocations: 16.88 kB / 388.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.3426, allocations: 0.5253 MB / 388.9 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003202/0.3458, allocations: 2.303 MB / 391.2 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009507/0.3468, allocations: 483.8 kB / 391.7 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005092/0.3473, allocations: 263.6 kB / 391.9 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/0.3474, allocations: 5.172 kB / 391.9 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.3474, allocations: 42.69 kB / 392 MB, free: 4.543 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 3.396e-06/0.3474, allocations: 0 / 392 MB, free: 4.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.01298/0.3604, allocations: 3.562 MB / 395.5 MB, free: 3.078 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.3605, allocations: 84.92 kB / 395.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007857/0.3613, allocations: 0.5359 MB / 396.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.994e-05/0.3613, allocations: 36.67 kB / 396.2 MB, free: 2.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.3615, allocations: 319.4 kB / 396.5 MB, free: 2.426 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.3617, allocations: 220.9 kB / 396.7 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.3619, allocations: 114 kB / 396.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.896e-05/0.362, allocations: 372.4 kB / 397.2 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005184/0.3625, allocations: 246.1 kB / 397.4 MB, free: 1.758 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005765/0.3631, allocations: 347.5 kB / 397.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.3642, allocations: 0.6011 MB / 398.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3642, allocations: 0 / 398.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001469/0.3657, allocations: 0.7433 MB / 399.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3657, allocations: 8.75 kB / 399.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3657, allocations: 1.375 kB / 399.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001839/0.3659, allocations: 37.41 kB / 399.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007739/0.3667, allocations: 170.6 kB / 399.3 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.3677, allocations: 1.428 MB / 400.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006745/0.3684, allocations: 42.66 kB / 400.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.638e-05/0.3685, allocations: 26.14 kB / 400.8 MB, free: 15.39 MB / 334.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.0003399/0.3688, allocations: 203.4 kB / 401 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.369, allocations: 60.94 kB / 401.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.3709, allocations: 0.8481 MB / 401.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.3709, allocations: 14.41 kB / 401.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3709, allocations: 1.031 kB / 401.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.371, allocations: 4.797 kB / 401.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003967/0.3749, allocations: 1.843 MB / 403.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.375, allocations: 5.281 kB / 403.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005377/0.3755, allocations: 106.2 kB / 403.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002375/0.3779, allocations: 479.3 kB / 404.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.214e-05/0.378, allocations: 13.16 kB / 404.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005329/0.3833, allocations: 3.157 MB / 407.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3833, allocations: 1.625 kB / 407.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003232/0.3866, allocations: 1.366 MB / 408.9 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005037/0.3871, allocations: 214.4 kB / 409.1 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.918e-05/0.3872, allocations: 16.16 kB / 409.1 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006231/0.3878, allocations: 43.09 kB / 409.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001879/0.388, allocations: 50.17 kB / 409.2 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.418e-05/0.3881, allocations: 16.72 kB / 409.2 MB, free: 9.691 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006304/0.3887, allocations: 387.8 kB / 409.6 MB, free: 9.461 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3887, allocations: 0 / 409.6 MB, free: 9.461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009383/0.3897, allocations: 185.4 kB / 409.8 MB, free: 9.438 MB / 334.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.0003345/0.39, allocations: 161.1 kB / 410 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.3916, allocations: 0.7296 MB / 410.7 MB, free: 8.906 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3917, allocations: 0 / 410.7 MB, free: 8.906 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009188/0.3926, allocations: 0.5292 MB / 411.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007253/0.3933, allocations: 88.03 kB / 411.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002802/0.3961, allocations: 1.48 MB / 412.8 MB, free: 7.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/0.3966, allocations: 0.9032 MB / 413.7 MB, free: 6.777 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003497/0.397, allocations: 76.55 kB / 413.8 MB, free: 6.738 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/0.3972, allocations: 49.8 kB / 413.8 MB, free: 6.723 MB / 334.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3972, allocations: 1.375 kB / 413.8 MB, free: 6.723 MB / 334.1 MB Notification: Performance of Templates: time 0.01842/0.4156, allocations: 10.4 MB / 424.2 MB, free: 12.91 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches