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.00127/0.00127, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001379/0.001379, allocations: 189.3 kB / 18.19 MB, free: 5.395 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.357/1.357, allocations: 205.1 MB / 224.1 MB, free: 12.47 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.001763/0.001763, allocations: 51.86 kB / 280.2 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09858/0.1004, allocations: 46.62 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005442/0.1058, allocations: 4.326 MB / 331.1 MB, free: 452 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002552/0.1084, allocations: 1.614 MB / 332.7 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002691/0.1087, allocations: 11.94 kB / 332.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003285/0.1091, allocations: 95.23 kB / 332.8 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007214/0.1098, allocations: 314.5 kB / 333.1 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000361/0.1102, allocations: 199.8 kB / 333.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008466/0.111, allocations: 0.9784 MB / 334.3 MB, free: 13.22 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003497/0.1114, allocations: 249.3 kB / 334.6 MB, free: 12.98 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004389/0.1119, allocations: 370.7 kB / 334.9 MB, free: 12.61 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004456/0.1123, allocations: 422.3 kB / 335.3 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001171/0.1124, allocations: 99.94 kB / 335.4 MB, free: 12.1 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003105/0.1127, allocations: 211.9 kB / 335.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.1129, allocations: 199.4 kB / 335.8 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003155/0.1132, allocations: 418.1 kB / 336.2 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.1143, allocations: 1.152 MB / 337.4 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1143, allocations: 0 / 337.4 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1143, allocations: 0 / 337.4 MB, free: 10.13 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.1143, allocations: 4 kB / 337.4 MB, free: 10.13 MB / 286.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.002439/0.1168, allocations: 1.095 MB / 338.5 MB, free: 8.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.1168, allocations: 11.97 kB / 338.5 MB, free: 8.969 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.117, allocations: 76.09 kB / 338.6 MB, free: 8.895 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006281/0.1176, allocations: 0.5068 MB / 339.1 MB, free: 8.352 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.874e-05/0.1177, allocations: 79.55 kB / 339.2 MB, free: 8.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001878/0.1179, allocations: 64.5 kB / 339.2 MB, free: 8.207 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.119, allocations: 0.6097 MB / 339.8 MB, free: 7.578 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.1191, allocations: 3.906 kB / 339.8 MB, free: 7.574 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.43e-05/0.1191, allocations: 24 kB / 339.9 MB, free: 7.551 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.1192, allocations: 12 kB / 339.9 MB, free: 7.539 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.1202, allocations: 0.5282 MB / 340.4 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003235/0.1235, allocations: 2.314 MB / 342.7 MB, free: 4.582 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009264/0.1244, allocations: 473.1 kB / 343.2 MB, free: 4.102 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005154/0.125, allocations: 270.1 kB / 343.4 MB, free: 3.832 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.436e-05/0.125, allocations: 7.984 kB / 343.4 MB, free: 3.824 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.125, allocations: 42.56 kB / 343.5 MB, free: 3.773 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 1.613e-06/0.1251, allocations: 0 / 343.5 MB, free: 3.773 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.01289/0.1379, allocations: 3.542 MB / 347 MB, free: 136 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.138, allocations: 81.67 kB / 347.1 MB, free: 36 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000692/0.1387, allocations: 0.541 MB / 347.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.894e-05/0.1388, allocations: 37.64 kB / 347.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.139, allocations: 316.3 kB / 348 MB, free: 15.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.1391, allocations: 212.8 kB / 348.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001887/0.1393, allocations: 106.3 kB / 348.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1395, allocations: 366.8 kB / 348.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005438/0.14, allocations: 253.2 kB / 348.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005795/0.1406, allocations: 340.4 kB / 349.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.1418, allocations: 0.6059 MB / 349.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1418, allocations: 0 / 349.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001506/0.1433, allocations: 0.741 MB / 350.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.1434, allocations: 12.3 kB / 350.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1434, allocations: 4 kB / 350.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001754/0.1436, allocations: 32.84 kB / 350.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007878/0.1444, allocations: 167.8 kB / 350.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.1454, allocations: 1.432 MB / 352.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005602/0.146, allocations: 47.97 kB / 352.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-05/0.1461, allocations: 23.98 kB / 352.3 MB, free: 10.57 MB / 302.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.0002883/0.1464, allocations: 201.7 kB / 352.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.1465, allocations: 59.34 kB / 352.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00175/0.1483, allocations: 0.8335 MB / 353.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.1483, allocations: 19.92 kB / 353.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.1483, allocations: 0 / 353.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.1483, allocations: 0 / 353.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003607/0.1519, allocations: 1.854 MB / 355.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.1519, allocations: 4 kB / 355.3 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005151/0.1525, allocations: 103.9 kB / 355.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002366/0.1548, allocations: 476.3 kB / 355.8 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.2e-05/0.1549, allocations: 15.98 kB / 355.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005038/0.16, allocations: 3.159 MB / 359 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.16, allocations: 0 / 359 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002865/0.1629, allocations: 1.366 MB / 360.4 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003253/0.1632, allocations: 212.2 kB / 360.6 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.629e-05/0.1633, allocations: 15.94 kB / 360.6 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005924/0.1639, allocations: 47.95 kB / 360.7 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.164, allocations: 48.5 kB / 360.7 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.231e-05/0.1641, allocations: 19.98 kB / 360.7 MB, free: 1.898 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004856/0.1646, allocations: 386.9 kB / 361.1 MB, free: 1.523 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1646, allocations: 0 / 361.1 MB, free: 1.523 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007296/0.1653, allocations: 180 kB / 361.3 MB, free: 1.348 MB / 302.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.0003122/0.1656, allocations: 155.3 kB / 361.4 MB, free: 1.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.1673, allocations: 0.7559 MB / 362.2 MB, free: 428 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1673, allocations: 0 / 362.2 MB, free: 428 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008695/0.1682, allocations: 0.5217 MB / 362.7 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006684/0.1689, allocations: 81.88 kB / 362.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.1716, allocations: 1.757 MB / 364.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.1721, allocations: 0.9004 MB / 365.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003449/0.1725, allocations: 72.8 kB / 365.5 MB, free: 13.01 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.1726, allocations: 47.42 kB / 365.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1727, allocations: 4 kB / 365.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of Templates: time 0.01584/0.1885, allocations: 10.12 MB / 375.7 MB, free: 2.836 MB / 318.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","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches