Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001784/0.001791, allocations: 92.97 kB / 16.95 MB, free: 6.379 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.001838/0.001838, allocations: 183 kB / 17.84 MB, free: 5.98 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.883/1.883, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005194/0.0005194, allocations: 12 kB / 280.8 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.143, allocations: 47.58 MB / 328.4 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008682/0.1518, allocations: 6.231 MB / 334.6 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005175/0.157, allocations: 2.23 MB / 336.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008518/0.1579, allocations: 16 kB / 336.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001559/0.1595, allocations: 417.6 kB / 337.2 MB, free: 11.14 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001154/0.1607, allocations: 317.7 kB / 337.6 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004551/0.1611, allocations: 123.9 kB / 337.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001389/0.1625, allocations: 1.082 MB / 338.8 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007521/0.1633, allocations: 356.6 kB / 339.1 MB, free: 9.262 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007585/0.1641, allocations: 378.3 kB / 339.5 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004955/0.1646, allocations: 418 kB / 339.9 MB, free: 8.48 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.1647, allocations: 52 kB / 339.9 MB, free: 8.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003517/0.1651, allocations: 91.97 kB / 340 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.1652, allocations: 155.2 kB / 340.2 MB, free: 8.188 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002394/0.1655, allocations: 221.2 kB / 340.4 MB, free: 7.965 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.1666, allocations: 1.118 MB / 341.5 MB, free: 6.844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1666, allocations: 0 / 341.5 MB, free: 6.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1667, allocations: 0 / 341.5 MB, free: 6.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.1667, allocations: 0 / 341.5 MB, free: 6.844 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001923/0.1686, allocations: 1.102 MB / 342.6 MB, free: 5.691 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.1687, allocations: 12.03 kB / 342.6 MB, free: 5.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004958/0.1692, allocations: 146.6 kB / 342.8 MB, free: 5.535 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.1702, allocations: 0.6212 MB / 343.4 MB, free: 4.867 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.1703, allocations: 61.94 kB / 343.4 MB, free: 4.809 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.1704, allocations: 79.98 kB / 343.5 MB, free: 4.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002124/0.1725, allocations: 0.7794 MB / 344.3 MB, free: 3.918 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.321e-05/0.1726, allocations: 3.984 kB / 344.3 MB, free: 3.914 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.374e-05/0.1727, allocations: 32 kB / 344.3 MB, free: 3.883 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.324e-05/0.1727, allocations: 20 kB / 344.4 MB, free: 3.863 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.1744, allocations: 0.527 MB / 344.9 MB, free: 3.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006814/0.1812, allocations: 3.399 MB / 348.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006936/0.1819, allocations: 250.3 kB / 348.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003325/0.1823, allocations: 116.8 kB / 348.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.006e-05/0.1823, allocations: 3.906 kB / 348.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.378e-05/0.1824, allocations: 42.56 kB / 348.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.925e-06/0.1824, allocations: 0 / 348.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.003058/0.1854, allocations: 1.082 MB / 349.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.228e-05/0.1855, allocations: 81.11 kB / 349.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001322/0.1869, allocations: 0.727 MB / 350.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.1869, allocations: 29.7 kB / 350.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000532/0.1875, allocations: 0.4904 MB / 351.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.1876, allocations: 106.5 kB / 351.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.782e-05/0.1876, allocations: 12 kB / 351.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002632/0.1879, allocations: 386.7 kB / 351.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003715/0.1883, allocations: 129.2 kB / 351.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007192/0.189, allocations: 422.2 kB / 352.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005674/0.1896, allocations: 195.8 kB / 352.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.174e-05/0.1896, allocations: 4 kB / 352.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001675/0.1913, allocations: 0.6189 MB / 352.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.14e-05/0.1914, allocations: 8 kB / 353 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-05/0.1914, allocations: 15.94 kB / 353 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002428/0.1917, allocations: 32.84 kB / 353 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006497/0.1923, allocations: 143.8 kB / 353.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/0.1939, allocations: 1.288 MB / 354.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007965/0.1947, allocations: 44.09 kB / 354.5 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.089e-05/0.1948, allocations: 31.98 kB / 354.5 MB, free: 9.082 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006335/0.1955, allocations: 233.6 kB / 354.7 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.1956, allocations: 75.11 kB / 354.8 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009177/0.1966, allocations: 341.8 kB / 355.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.1966, allocations: 7.984 kB / 355.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1966, allocations: 3.953 kB / 355.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1966, allocations: 0 / 355.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002725/0.1994, allocations: 1.113 MB / 356.3 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.447e-06/0.1994, allocations: 4 kB / 356.3 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/0.1998, allocations: 67.89 kB / 356.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001544/0.2, allocations: 17.08 kB / 356.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/0.2, allocations: 12 kB / 356.4 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/0.2014, allocations: 1.28 MB / 357.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.2014, allocations: 0 / 357.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.2029, allocations: 0.5678 MB / 358.2 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004831/0.2034, allocations: 176.2 kB / 358.4 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/0.2036, allocations: 8 kB / 358.4 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005565/0.2042, allocations: 23.92 kB / 358.4 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.2043, allocations: 31.92 kB / 358.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.26e-05/0.2043, allocations: 12 kB / 358.5 MB, free: 4.832 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001239/0.2056, allocations: 0.4951 MB / 358.9 MB, free: 4.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2056, allocations: 0 / 358.9 MB, free: 4.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001424/0.207, allocations: 164 kB / 359.1 MB, free: 4.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004312/0.2075, allocations: 111.2 kB / 359.2 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.2091, allocations: 476.2 kB / 359.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.2091, allocations: 0 / 359.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005544/0.2097, allocations: 251.1 kB / 359.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.2114, allocations: 167.3 kB / 360.1 MB, free: 3.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00473/0.2161, allocations: 1.757 MB / 361.8 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.2172, allocations: 0.9414 MB / 362.8 MB, free: 396 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006405/0.2179, allocations: 86.03 kB / 362.9 MB, free: 308 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.218, allocations: 51.42 kB / 362.9 MB, free: 256 kB / 302.1 MB Notification: Performance of SimCode: time 2.505e-06/0.2181, allocations: 0 / 362.9 MB, free: 256 kB / 302.1 MB Notification: Performance of Templates: time 0.02324/0.2413, allocations: 7.43 MB / 370.4 MB, free: 8.824 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches