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.001583/0.001583, allocations: 113.2 kB / 17.73 MB, free: 5.34 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.001315/0.001315, allocations: 184.2 kB / 18.66 MB, free: 4.414 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.457/1.457, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001241/0.001241, allocations: 51.94 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.0902, allocations: 46.62 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005379/0.0956, allocations: 4.3 MB / 379.4 MB, free: 256 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.207/0.3027, allocations: 1.63 MB / 381.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003446/0.3031, allocations: 7.688 kB / 381.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003455/0.3035, allocations: 125.8 kB / 381.2 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000703/0.3042, allocations: 358 kB / 381.6 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003947/0.3046, allocations: 230.8 kB / 381.8 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008384/0.3054, allocations: 0.9872 MB / 382.8 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003654/0.3058, allocations: 242.1 kB / 383 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000514/0.3063, allocations: 372.2 kB / 383.4 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005232/0.3069, allocations: 428.1 kB / 383.8 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000153/0.307, allocations: 96 kB / 383.9 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004325/0.3075, allocations: 217.4 kB / 384.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.3076, allocations: 199.6 kB / 384.3 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003278/0.3079, allocations: 418.5 kB / 384.7 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.3092, allocations: 1.162 MB / 385.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3092, allocations: 4 kB / 385.9 MB, free: 8.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3092, allocations: 0 / 385.9 MB, free: 8.141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.3093, allocations: 0 / 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.002221/0.3115, allocations: 1.093 MB / 387 MB, free: 7.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3115, allocations: 12.97 kB / 387 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.3117, allocations: 80.03 kB / 387 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006879/0.3124, allocations: 0.5159 MB / 387.6 MB, free: 6.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.11e-05/0.3125, allocations: 69.61 kB / 387.6 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001871/0.3127, allocations: 69.86 kB / 387.7 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.3138, allocations: 0.6032 MB / 388.3 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.3138, allocations: 5.25 kB / 388.3 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.917e-05/0.3139, allocations: 20.72 kB / 388.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.058e-05/0.3139, allocations: 13.66 kB / 388.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.3151, allocations: 0.5261 MB / 388.9 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003262/0.3184, allocations: 2.291 MB / 391.2 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009911/0.3194, allocations: 475.8 kB / 391.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000528/0.3199, allocations: 264.4 kB / 391.9 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/0.3199, allocations: 12.48 kB / 391.9 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.32, allocations: 37.58 kB / 391.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.733e-06/0.32, allocations: 1.031 kB / 391.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.01289/0.3329, allocations: 3.545 MB / 395.5 MB, free: 3.125 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.333, allocations: 84.98 kB / 395.6 MB, free: 3.031 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008638/0.3338, allocations: 0.5362 MB / 396.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.473e-05/0.3339, allocations: 35.92 kB / 396.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.3341, allocations: 317.4 kB / 396.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.3343, allocations: 211.2 kB / 396.6 MB, free: 2.316 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002066/0.3345, allocations: 115.3 kB / 396.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3346, allocations: 369.4 kB / 397.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005822/0.3352, allocations: 243.9 kB / 397.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005872/0.3358, allocations: 355 kB / 397.7 MB, free: 1.617 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.3369, allocations: 0.5995 MB / 398.3 MB, free: 1.277 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3369, allocations: 0 / 398.3 MB, free: 1.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00148/0.3384, allocations: 0.7395 MB / 399 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.3385, allocations: 5.844 kB / 399 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.128e-06/0.3385, allocations: 2.719 kB / 399.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001774/0.3386, allocations: 32.44 kB / 399.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007913/0.3394, allocations: 176 kB / 399.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009245/0.3404, allocations: 1.43 MB / 400.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006154/0.341, allocations: 46.27 kB / 400.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.257e-05/0.3411, allocations: 22.89 kB / 400.8 MB, free: 15.45 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.0003103/0.3414, allocations: 198.2 kB / 400.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001798/0.3416, allocations: 64.34 kB / 401 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.3435, allocations: 0.8346 MB / 401.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.3435, allocations: 11.47 kB / 401.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.3435, allocations: 0 / 401.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.3436, allocations: 4.547 kB / 401.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/0.3474, allocations: 1.859 MB / 403.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.3474, allocations: 0 / 403.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005283/0.348, allocations: 106.3 kB / 403.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002332/0.3503, allocations: 472.7 kB / 404.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.223e-05/0.3504, allocations: 17.23 kB / 404.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005066/0.3555, allocations: 3.148 MB / 407.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3555, allocations: 1.312 kB / 407.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003038/0.3585, allocations: 1.369 MB / 408.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003491/0.3589, allocations: 207.2 kB / 409 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.713e-05/0.359, allocations: 19.66 kB / 409 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006248/0.3596, allocations: 42.34 kB / 409.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.3598, allocations: 46.78 kB / 409.1 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.476e-05/0.3598, allocations: 20.08 kB / 409.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004919/0.3603, allocations: 388.2 kB / 409.5 MB, free: 9.559 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3603, allocations: 0 / 409.5 MB, free: 9.559 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007973/0.3611, allocations: 193.8 kB / 409.7 MB, free: 9.527 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.0003557/0.3615, allocations: 140.1 kB / 409.9 MB, free: 9.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.363, allocations: 0.7349 MB / 410.6 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.363, allocations: 0 / 410.6 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009127/0.364, allocations: 0.5267 MB / 411.1 MB, free: 8.676 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006878/0.3647, allocations: 92.14 kB / 411.2 MB, free: 8.625 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.3674, allocations: 1.459 MB / 412.7 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/0.368, allocations: 0.9034 MB / 413.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003411/0.3684, allocations: 72.41 kB / 413.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.3686, allocations: 54.84 kB / 413.7 MB, free: 6.844 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3686, allocations: 0 / 413.7 MB, free: 6.844 MB / 334.1 MB Notification: Performance of Templates: time 0.0183/0.3869, allocations: 10.4 MB / 424.1 MB, free: 13.05 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