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.001223/0.001228, allocations: 104 kB / 17.58 MB, free: 5.426 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.001356/0.001356, allocations: 187.9 kB / 18.51 MB, free: 4.512 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.291/1.291, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001182/0.001182, allocations: 55.92 kB / 280.7 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09216/0.09335, allocations: 46.62 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005677/0.09907, allocations: 4.3 MB / 331.6 MB, free: 144 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002884/0.102, allocations: 1.626 MB / 333.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004829/0.1025, allocations: 11.94 kB / 333.2 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004485/0.103, allocations: 126.8 kB / 333.3 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009136/0.1039, allocations: 357.9 kB / 333.7 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004439/0.1044, allocations: 235.7 kB / 333.9 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009711/0.1054, allocations: 0.9706 MB / 334.9 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003345/0.1057, allocations: 249.3 kB / 335.1 MB, free: 12.56 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000487/0.1062, allocations: 374.8 kB / 335.5 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005332/0.1068, allocations: 418.3 kB / 335.9 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.1069, allocations: 103.9 kB / 336 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003829/0.1073, allocations: 215.9 kB / 336.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.1075, allocations: 199.3 kB / 336.4 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004766/0.108, allocations: 414.1 kB / 336.8 MB, free: 10.87 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.109, allocations: 1.149 MB / 338 MB, free: 9.719 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.109, allocations: 0 / 338 MB, free: 9.719 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.109, allocations: 0 / 338 MB, free: 9.719 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.219e-05/0.1091, allocations: 0 / 338 MB, free: 9.719 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.002459/0.1115, allocations: 1.095 MB / 339.1 MB, free: 8.57 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1116, allocations: 12.03 kB / 339.1 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.1117, allocations: 76.09 kB / 339.2 MB, free: 8.484 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006368/0.1124, allocations: 0.5106 MB / 339.7 MB, free: 7.938 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.896e-05/0.1125, allocations: 75.56 kB / 339.7 MB, free: 7.859 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.1127, allocations: 68.48 kB / 339.8 MB, free: 7.793 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.1137, allocations: 0.5981 MB / 340.4 MB, free: 7.176 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.1137, allocations: 3.906 kB / 340.4 MB, free: 7.172 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.747e-05/0.1138, allocations: 31.98 kB / 340.4 MB, free: 7.141 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.1138, allocations: 15.94 kB / 340.5 MB, free: 7.125 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.1148, allocations: 0.5243 MB / 341 MB, free: 6.602 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003243/0.1181, allocations: 2.306 MB / 343.3 MB, free: 4.184 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009645/0.119, allocations: 481.1 kB / 343.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005257/0.1196, allocations: 262.1 kB / 344 MB, free: 3.434 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.1196, allocations: 8 kB / 344 MB, free: 3.426 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.1197, allocations: 38.5 kB / 344.1 MB, free: 3.379 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 2.024e-06/0.1197, allocations: 0 / 344.1 MB, free: 3.379 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.01309/0.1328, allocations: 3.546 MB / 347.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/0.1329, allocations: 89.61 kB / 347.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007682/0.1336, allocations: 0.5331 MB / 348.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.735e-05/0.1337, allocations: 41.64 kB / 348.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002233/0.1339, allocations: 316.3 kB / 348.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.1341, allocations: 212.8 kB / 348.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/0.1343, allocations: 110.3 kB / 348.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1345, allocations: 370.7 kB / 349.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005498/0.1351, allocations: 245.2 kB / 349.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006033/0.1357, allocations: 348.4 kB / 349.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.1368, allocations: 0.6097 MB / 350.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1368, allocations: 0 / 350.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001532/0.1384, allocations: 0.7451 MB / 351.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1384, allocations: 4 kB / 351.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.1384, allocations: 4 kB / 351.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001788/0.1386, allocations: 32.83 kB / 351.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007857/0.1394, allocations: 171.8 kB / 351.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/0.1405, allocations: 1.424 MB / 352.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006144/0.1411, allocations: 43.91 kB / 352.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.529e-05/0.1412, allocations: 27.98 kB / 352.9 MB, free: 10.17 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.0003033/0.1415, allocations: 205.7 kB / 353.1 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.1417, allocations: 55.34 kB / 353.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001876/0.1435, allocations: 0.8451 MB / 354 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.1436, allocations: 11.94 kB / 354 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1436, allocations: 0 / 354 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.1436, allocations: 3.984 kB / 354 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003741/0.1473, allocations: 1.847 MB / 355.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1474, allocations: 0 / 355.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005189/0.1479, allocations: 107.9 kB / 356 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002324/0.1502, allocations: 480.2 kB / 356.4 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.422e-05/0.1503, allocations: 15.98 kB / 356.4 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005047/0.1553, allocations: 3.15 MB / 359.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1554, allocations: 0 / 359.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002921/0.1583, allocations: 1.366 MB / 361 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003346/0.1586, allocations: 208.2 kB / 361.2 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.1588, allocations: 24.02 kB / 361.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006175/0.1594, allocations: 39.97 kB / 361.2 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.1596, allocations: 48.48 kB / 361.3 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.413e-05/0.1596, allocations: 19.98 kB / 361.3 MB, free: 1.504 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004923/0.1601, allocations: 390.9 kB / 361.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.332e-06/0.1601, allocations: 4 kB / 361.7 MB, free: 1.121 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007391/0.1609, allocations: 187.9 kB / 361.9 MB, free: 0.9375 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.00033/0.1612, allocations: 147.2 kB / 362 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.1629, allocations: 0.7441 MB / 362.7 MB, free: 28 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.1629, allocations: 0 / 362.7 MB, free: 28 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009524/0.1639, allocations: 0.5218 MB / 363.3 MB, free: 15.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007431/0.1646, allocations: 97.16 kB / 363.4 MB, free: 15.4 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/0.1674, allocations: 1.471 MB / 364.8 MB, free: 13.9 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.1679, allocations: 0.9004 MB / 365.7 MB, free: 12.97 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003371/0.1682, allocations: 76.8 kB / 365.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.1684, allocations: 51.41 kB / 365.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1684, allocations: 4 kB / 365.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of Templates: time 0.01696/0.1854, allocations: 10.25 MB / 376.1 MB, free: 2.574 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","/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