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.001088/0.001088, allocations: 109.4 kB / 18.34 MB, free: 4.676 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.001111/0.001111, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.339/1.339, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001288/0.001288, allocations: 55.92 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0878/0.0891, allocations: 46.63 MB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005863/0.09501, allocations: 4.307 MB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002993/0.09804, allocations: 1.63 MB / 334.7 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005447/0.0986, allocations: 11.94 kB / 334.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000475/0.09913, allocations: 118.9 kB / 334.8 MB, free: 13.63 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.1003, allocations: 357.6 kB / 335.1 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005141/0.1008, allocations: 227.7 kB / 335.4 MB, free: 13.06 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009956/0.1018, allocations: 0.9745 MB / 336.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003286/0.1022, allocations: 249.3 kB / 336.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003838/0.1026, allocations: 370.7 kB / 336.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004359/0.103, allocations: 438.3 kB / 337.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.1031, allocations: 96 kB / 337.5 MB, free: 10.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003305/0.1035, allocations: 207.9 kB / 337.7 MB, free: 10.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.1036, allocations: 199.3 kB / 337.9 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003197/0.1039, allocations: 414.1 kB / 338.3 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009777/0.1049, allocations: 1.168 MB / 339.4 MB, free: 8.973 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1049, allocations: 0 / 339.4 MB, free: 8.973 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1049, allocations: 0 / 339.4 MB, free: 8.973 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.105, allocations: 0 / 339.4 MB, free: 8.973 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.002214/0.1072, allocations: 1.095 MB / 340.5 MB, free: 7.824 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1072, allocations: 12.03 kB / 340.5 MB, free: 7.812 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.1074, allocations: 72.09 kB / 340.6 MB, free: 7.742 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007357/0.1081, allocations: 0.5145 MB / 341.1 MB, free: 7.191 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.516e-05/0.1082, allocations: 71.58 kB / 341.2 MB, free: 7.117 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001848/0.1084, allocations: 72.48 kB / 341.3 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.1094, allocations: 0.6058 MB / 341.9 MB, free: 6.422 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.1095, allocations: 3.906 kB / 341.9 MB, free: 6.418 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.031e-05/0.1095, allocations: 20 kB / 341.9 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.1095, allocations: 16 kB / 341.9 MB, free: 6.383 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.1106, allocations: 0.5282 MB / 342.4 MB, free: 5.855 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003207/0.1138, allocations: 2.295 MB / 344.7 MB, free: 3.449 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009275/0.1148, allocations: 477 kB / 345.2 MB, free: 2.965 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005094/0.1153, allocations: 266.1 kB / 345.5 MB, free: 2.699 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.1153, allocations: 12.22 kB / 345.5 MB, free: 2.688 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.1154, allocations: 46.5 kB / 345.5 MB, free: 2.633 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 2.034e-06/0.1154, allocations: 0 / 345.5 MB, free: 2.633 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.01293/0.1283, allocations: 3.531 MB / 349.1 MB, free: 15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.63e-05/0.1284, allocations: 89.66 kB / 349.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007195/0.1291, allocations: 0.5331 MB / 349.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.075e-05/0.1292, allocations: 37.7 kB / 349.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002236/0.1294, allocations: 320.2 kB / 350 MB, free: 13.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.1296, allocations: 204.9 kB / 350.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.1298, allocations: 106.3 kB / 350.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.13, allocations: 370.8 kB / 350.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005365/0.1306, allocations: 249.2 kB / 350.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000568/0.1311, allocations: 344.4 kB / 351.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.1323, allocations: 0.6136 MB / 351.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.1323, allocations: 0 / 351.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001463/0.1337, allocations: 0.7412 MB / 352.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.1338, allocations: 8 kB / 352.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.1338, allocations: 0 / 352.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001854/0.134, allocations: 36.77 kB / 352.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007778/0.1348, allocations: 167.8 kB / 352.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.1359, allocations: 1.436 MB / 354.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006015/0.1365, allocations: 39.92 kB / 354.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.075e-05/0.1366, allocations: 23.98 kB / 354.3 MB, free: 9.445 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.0003054/0.1369, allocations: 205.6 kB / 354.5 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.137, allocations: 63.41 kB / 354.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001769/0.1388, allocations: 0.8373 MB / 355.4 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/0.1388, allocations: 11.94 kB / 355.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.1388, allocations: 0 / 355.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.1388, allocations: 3.984 kB / 355.4 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003598/0.1424, allocations: 1.838 MB / 357.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.1425, allocations: 0 / 357.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005119/0.143, allocations: 111.8 kB / 357.4 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002204/0.1452, allocations: 480.4 kB / 357.9 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.846e-05/0.1453, allocations: 12 kB / 357.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004805/0.1501, allocations: 3.146 MB / 361 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.1501, allocations: 4.031 kB / 361 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002832/0.1529, allocations: 1.367 MB / 362.4 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003091/0.1533, allocations: 212.2 kB / 362.6 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.522e-05/0.1534, allocations: 12 kB / 362.6 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000599/0.154, allocations: 47.97 kB / 362.7 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.1541, allocations: 48.42 kB / 362.7 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.555e-05/0.1542, allocations: 24 kB / 362.7 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004512/0.1546, allocations: 386.9 kB / 363.1 MB, free: 424 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1546, allocations: 7.938 kB / 363.1 MB, free: 416 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007219/0.1553, allocations: 184 kB / 363.3 MB, free: 232 kB / 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.0002726/0.1556, allocations: 143.2 kB / 363.4 MB, free: 80 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.1571, allocations: 0.7326 MB / 364.2 MB, free: 15.33 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1571, allocations: 0 / 364.2 MB, free: 15.33 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008807/0.158, allocations: 0.5218 MB / 364.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006411/0.1587, allocations: 90.06 kB / 364.8 MB, free: 14.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002618/0.1613, allocations: 1.471 MB / 366.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.1617, allocations: 0.8965 MB / 367.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003041/0.162, allocations: 76.8 kB / 367.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.1622, allocations: 51.41 kB / 367.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1622, allocations: 4 kB / 367.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of Templates: time 0.01608/0.1783, allocations: 10.24 MB / 377.5 MB, free: 1.902 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/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