Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001096, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.001041/0.00104, allocations: 191 kB / 19.29 MB, free: 3.715 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.516/1.516, 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.001155/0.001155, allocations: 56.2 kB / 282.1 MB, free: 2.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0967/0.09787, allocations: 46.63 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009675/0.1076, allocations: 8.156 MB / 336.9 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005136/0.1128, allocations: 2.74 MB / 339.6 MB, free: 8.809 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001715/0.1146, allocations: 27.88 kB / 339.7 MB, free: 8.781 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002287/0.1169, allocations: 0.5481 MB / 340.2 MB, free: 8.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002249/0.1192, allocations: 480.2 kB / 340.7 MB, free: 7.758 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007176/0.1199, allocations: 263.6 kB / 340.9 MB, free: 7.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002226/0.1221, allocations: 1.506 MB / 342.4 MB, free: 5.988 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.1232, allocations: 0.5925 MB / 343 MB, free: 5.375 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001205/0.1244, allocations: 0.568 MB / 343.6 MB, free: 4.805 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007624/0.1252, allocations: 0.6067 MB / 344.2 MB, free: 4.195 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001729/0.1254, allocations: 140 kB / 344.3 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003615/0.1258, allocations: 184 kB / 344.5 MB, free: 3.879 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002243/0.126, allocations: 286.9 kB / 344.8 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006323/0.1266, allocations: 0.6687 MB / 345.5 MB, free: 2.926 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001851/0.1285, allocations: 1.752 MB / 347.2 MB, free: 1.168 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.1285, allocations: 0 / 347.2 MB, free: 1.168 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1285, allocations: 0 / 347.2 MB, free: 1.168 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.306e-05/0.1286, allocations: 0 / 347.2 MB, free: 1.168 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002767/0.1313, allocations: 1.48 MB / 348.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.1314, allocations: 11.89 kB / 348.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000707/0.1321, allocations: 187.3 kB / 348.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.1334, allocations: 0.7697 MB / 349.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.974e-05/0.1335, allocations: 74 kB / 349.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001392/0.1337, allocations: 99.91 kB / 349.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/0.1353, allocations: 0.9464 MB / 350.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.414e-05/0.1354, allocations: 0 / 350.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.763e-05/0.1355, allocations: 44 kB / 350.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.1355, allocations: 24 kB / 350.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.1367, allocations: 0.6519 MB / 351.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005631/0.1424, allocations: 3.906 MB / 355.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000738/0.1431, allocations: 443.8 kB / 355.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005502/0.1437, allocations: 280.4 kB / 356.1 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.931e-05/0.1438, allocations: 4 kB / 356.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.1438, allocations: 42.55 kB / 356.2 MB, free: 7.832 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.915e-06/0.1438, allocations: 0 / 356.2 MB, free: 7.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003303/0.1471, allocations: 1.54 MB / 357.7 MB, free: 6.199 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.1472, allocations: 81.11 kB / 357.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/0.1484, allocations: 0.841 MB / 358.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.1485, allocations: 33.7 kB / 358.7 MB, free: 5.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004483/0.1489, allocations: 0.5681 MB / 359.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.1491, allocations: 165.6 kB / 359.4 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002076/0.1493, allocations: 134.4 kB / 359.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.1494, allocations: 333.9 kB / 359.8 MB, free: 4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.1498, allocations: 177.9 kB / 360 MB, free: 3.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005194/0.1503, allocations: 471.6 kB / 360.5 MB, free: 3.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009673/0.1513, allocations: 0.6758 MB / 361.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.1513, allocations: 4 kB / 361.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001422/0.1528, allocations: 0.7944 MB / 362 MB, free: 1.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.1528, allocations: 8 kB / 362 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.1528, allocations: 12 kB / 362 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002906/0.1531, allocations: 77.62 kB / 362.1 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004961/0.1536, allocations: 167.8 kB / 362.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002503/0.1561, allocations: 3.138 MB / 365.4 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007488/0.1569, allocations: 43.89 kB / 365.4 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.131e-05/0.157, allocations: 32 kB / 365.4 MB, free: 13.86 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004444/0.1574, allocations: 269.6 kB / 365.7 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.1576, allocations: 90.91 kB / 365.8 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009623/0.1585, allocations: 0.4913 MB / 366.3 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.1586, allocations: 8 kB / 366.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1586, allocations: 0 / 366.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1586, allocations: 3.984 kB / 366.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.1608, allocations: 1.473 MB / 367.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.1608, allocations: 0 / 367.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003196/0.1611, allocations: 80.11 kB / 367.8 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002145/0.1614, allocations: 69.67 kB / 367.9 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.1614, allocations: 12 kB / 367.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002411/0.1638, allocations: 3.118 MB / 371 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.1638, allocations: 12.03 kB / 371 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.1654, allocations: 0.7904 MB / 371.8 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003806/0.1658, allocations: 200 kB / 372 MB, free: 6.789 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.994e-05/0.1659, allocations: 15.94 kB / 372 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004388/0.1663, allocations: 27.98 kB / 372.1 MB, free: 6.746 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.675e-05/0.1664, allocations: 35.89 kB / 372.1 MB, free: 6.711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/0.1665, allocations: 19.98 kB / 372.1 MB, free: 6.691 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00081/0.1673, allocations: 0.5693 MB / 372.7 MB, free: 6.125 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1673, allocations: 7.938 kB / 372.7 MB, free: 6.117 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008758/0.1682, allocations: 208 kB / 372.9 MB, free: 5.914 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002536/0.1684, allocations: 119.2 kB / 373 MB, free: 5.785 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00129/0.1697, allocations: 0.7063 MB / 373.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.1698, allocations: 8 kB / 373.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006546/0.1704, allocations: 448.6 kB / 374.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.1715, allocations: 232.7 kB / 374.4 MB, free: 4.359 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003068/0.1746, allocations: 1.726 MB / 376.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005894/0.1752, allocations: 1.013 MB / 377.1 MB, free: 1.543 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004477/0.1757, allocations: 103.3 kB / 377.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.1758, allocations: 55.44 kB / 377.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of SimCode: time 8.71e-07/0.1758, allocations: 4 kB / 377.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of Templates: time 0.2226/0.3984, allocations: 10.71 MB / 388 MB, free: 49.55 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches