Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001518/0.001518, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001723, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.959/1.959, allocations: 227.4 MB / 246.9 MB, free: 10.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3639/0.3639, allocations: 46.11 MB / 344.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002534/0.002534, allocations: 72.97 kB / 417.5 MB, free: 20.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1586, allocations: 62.44 MB / 479.9 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.009842/0.1685, allocations: 4.556 MB / 484.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004381/0.173, allocations: 1.624 MB / 486.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00076/0.1738, allocations: 15.94 kB / 486.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001297/0.1751, allocations: 258.6 kB / 486.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006601/0.1758, allocations: 123 kB / 486.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007657/0.1766, allocations: 243.8 kB / 486.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00126/0.1778, allocations: 0.7874 MB / 487.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008002/0.1787, allocations: 365.9 kB / 487.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005913/0.1793, allocations: 270.7 kB / 488.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004755/0.1798, allocations: 314.3 kB / 488.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.1799, allocations: 48 kB / 488.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.18, allocations: 44 kB / 488.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.1802, allocations: 135.3 kB / 488.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004482/0.1807, allocations: 345.9 kB / 489 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008781/0.1816, allocations: 0.7054 MB / 489.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1816, allocations: 0 / 489.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1816, allocations: 0 / 489.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.1816, allocations: 0 / 489.7 MB, free: 11.91 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002537/0.1842, allocations: 1.025 MB / 490.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.1842, allocations: 8.875 kB / 490.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/0.1845, allocations: 83.91 kB / 490.8 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001017/0.1855, allocations: 493.5 kB / 491.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.631e-05/0.1856, allocations: 45.69 kB / 491.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.1857, allocations: 64.38 kB / 491.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.1874, allocations: 0.5953 MB / 492 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.926e-05/0.1875, allocations: 7.906 kB / 492 MB, free: 9.488 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.009e-05/0.1876, allocations: 23.98 kB / 492.1 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.1876, allocations: 16 kB / 492.1 MB, free: 9.449 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.189, allocations: 421 kB / 492.5 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00474/0.1937, allocations: 2.163 MB / 494.6 MB, free: 6.777 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001733/0.1955, allocations: 0.5662 MB / 495.2 MB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004998/0.196, allocations: 172.7 kB / 495.4 MB, free: 6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.324e-05/0.1961, allocations: 4 kB / 495.4 MB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.441e-05/0.1962, allocations: 38.56 kB / 495.4 MB, free: 5.949 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 3.176e-06/0.1962, allocations: 0 / 495.4 MB, free: 5.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.003446/0.1996, allocations: 1.141 MB / 496.6 MB, free: 4.734 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.188e-05/0.1997, allocations: 59.41 kB / 496.6 MB, free: 4.664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009616/0.2007, allocations: 0.5106 MB / 497.1 MB, free: 4.148 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.453e-05/0.2007, allocations: 29.7 kB / 497.2 MB, free: 4.113 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003378/0.2011, allocations: 348.1 kB / 497.5 MB, free: 3.766 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.2012, allocations: 118.3 kB / 497.6 MB, free: 3.648 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.2014, allocations: 74.12 kB / 497.7 MB, free: 3.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.2016, allocations: 366.7 kB / 498 MB, free: 3.203 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004969/0.2021, allocations: 146.5 kB / 498.2 MB, free: 3.059 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005601/0.2027, allocations: 220.9 kB / 498.4 MB, free: 2.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.2038, allocations: 359.9 kB / 498.8 MB, free: 2.426 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.2038, allocations: 3.938 kB / 498.8 MB, free: 2.422 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001493/0.2053, allocations: 489.2 kB / 499.2 MB, free: 1.934 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.2053, allocations: 4 kB / 499.2 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.2054, allocations: 4 kB / 499.2 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002158/0.2056, allocations: 21.14 kB / 499.3 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000666/0.2063, allocations: 103.9 kB / 499.4 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001436/0.2077, allocations: 1.289 MB / 0.4889 GB, free: 392 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004652/0.2082, allocations: 23.98 kB / 0.4889 GB, free: 368 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.103e-05/0.2083, allocations: 12 kB / 0.489 GB, free: 356 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006273/0.2089, allocations: 256.9 kB / 0.4892 GB, free: 96 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004467/0.2093, allocations: 215 kB / 0.4894 GB, free: 15.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007774/0.2101, allocations: 332 kB / 0.4897 GB, free: 15.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.557e-06/0.2102, allocations: 3.938 kB / 0.4897 GB, free: 15.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.001172/0.2113, allocations: 434.1 kB / 0.4901 GB, free: 15.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.2114, allocations: 8.344 kB / 0.4901 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.2114, allocations: 4 kB / 0.4901 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001668/0.2116, allocations: 32.78 kB / 0.4902 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005525/0.2121, allocations: 87.91 kB / 0.4903 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/0.2136, allocations: 1.28 MB / 0.4915 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004146/0.214, allocations: 19.94 kB / 0.4915 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.365e-05/0.2141, allocations: 16 kB / 0.4915 GB, free: 13.46 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004125/0.2145, allocations: 208.1 kB / 0.4917 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.2147, allocations: 63.42 kB / 0.4918 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001717/0.2148, allocations: 57.23 kB / 0.4919 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.2149, allocations: 4 kB / 0.4919 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.2149, allocations: 0 / 0.4919 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/0.2149, allocations: 7.984 kB / 0.4919 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002611/0.2175, allocations: 1.064 MB / 0.4929 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.2176, allocations: 0 / 0.4929 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005428/0.2181, allocations: 67.89 kB / 0.493 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000138/0.2183, allocations: 32.91 kB / 0.493 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.2183, allocations: 12 kB / 0.493 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001254/0.2196, allocations: 1.272 MB / 0.4943 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.884e-06/0.2196, allocations: 4.031 kB / 0.4943 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.2212, allocations: 0.6302 MB / 0.4949 GB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.2214, allocations: 132.4 kB / 0.495 GB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.692e-05/0.2215, allocations: 4 kB / 0.495 GB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004386/0.222, allocations: 31.97 kB / 0.495 GB, free: 9.637 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.2221, allocations: 19.97 kB / 0.4951 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.956e-05/0.2221, allocations: 12 kB / 0.4951 GB, free: 9.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007159/0.2229, allocations: 366.9 kB / 0.4954 GB, free: 9.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.885e-06/0.2229, allocations: 0 / 0.4954 GB, free: 9.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001167/0.2241, allocations: 179.9 kB / 0.4956 GB, free: 9.074 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.integrator.y) * 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 (32): * Single equations (assignments): 31 * 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,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.0001923/0.2243, allocations: 113.6 kB / 0.4957 GB, free: 8.953 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002167/0.2264, allocations: 0.7365 MB / 0.4964 GB, free: 8.191 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/0.2265, allocations: 8.375 kB / 0.4964 GB, free: 8.184 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006531/0.2271, allocations: 274.7 kB / 0.4967 GB, free: 7.902 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.2283, allocations: 102.2 kB / 0.4968 GB, free: 7.801 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.2318, allocations: 1.568 MB / 0.4983 GB, free: 6.191 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006412/0.2325, allocations: 0.8902 MB / 0.4992 GB, free: 5.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002075/0.2327, allocations: 39.44 kB / 0.4992 GB, free: 5.23 MB / 382.1 MB Notification: Performance of SimCode: time 1.233e-06/0.2328, allocations: 4 kB / 0.4992 GB, free: 5.227 MB / 382.1 MB Notification: Performance of Templates: time 0.3171/0.5499, allocations: 9.507 MB / 0.5085 GB, free: 40.59 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)