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.001372/0.001372, allocations: 111.4 kB / 17.98 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 205.8 kB / 18.92 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 247.1 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2425/0.2425, allocations: 46.12 MB / 344.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00357/0.00357, allocations: 81.64 kB / 417.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1794, allocations: 62.46 MB / 480.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006557/0.186, allocations: 4.541 MB / 484.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003048/0.1891, allocations: 1.628 MB / 486.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000439/0.1896, allocations: 19.88 kB / 486.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008666/0.1905, allocations: 258.7 kB / 486.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004029/0.1909, allocations: 131 kB / 486.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005138/0.1914, allocations: 239.8 kB / 487 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009762/0.1924, allocations: 0.8381 MB / 487.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005863/0.193, allocations: 390.2 kB / 488.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000502/0.1935, allocations: 306.8 kB / 488.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000392/0.1939, allocations: 346.2 kB / 488.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.194, allocations: 80 kB / 489 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.1941, allocations: 80 kB / 489 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.1943, allocations: 175.3 kB / 489.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003308/0.1946, allocations: 370 kB / 489.6 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007715/0.1954, allocations: 0.7171 MB / 490.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1954, allocations: 0 / 490.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.1954, allocations: 3.938 kB / 490.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.1955, allocations: 0 / 490.3 MB, free: 11.41 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.001731/0.1972, allocations: 1.025 MB / 491.3 MB, free: 10.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.1972, allocations: 8.031 kB / 491.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.1974, allocations: 83.91 kB / 491.4 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006839/0.1981, allocations: 493.5 kB / 491.9 MB, free: 9.719 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.469e-05/0.1981, allocations: 45.69 kB / 491.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.32e-05/0.1982, allocations: 60.38 kB / 492 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.1993, allocations: 0.5992 MB / 492.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.1994, allocations: 3.906 kB / 492.6 MB, free: 8.992 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.945e-05/0.1994, allocations: 28 kB / 492.6 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.1995, allocations: 16 kB / 492.6 MB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008946/0.2004, allocations: 425 kB / 493 MB, free: 8.535 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003301/0.2037, allocations: 2.16 MB / 495.2 MB, free: 6.277 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.2049, allocations: 0.5627 MB / 495.8 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003451/0.2053, allocations: 171.2 kB / 495.9 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.2053, allocations: 4 kB / 495.9 MB, free: 5.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.207e-05/0.2053, allocations: 42.56 kB / 496 MB, free: 5.449 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.033e-06/0.2054, allocations: 0 / 496 MB, free: 5.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002438/0.2078, allocations: 1.138 MB / 497.1 MB, free: 4.238 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.2079, allocations: 55.41 kB / 497.2 MB, free: 4.172 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000699/0.2086, allocations: 0.5184 MB / 497.7 MB, free: 3.648 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.422e-05/0.2086, allocations: 29.7 kB / 497.7 MB, free: 3.613 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000273/0.2089, allocations: 348.1 kB / 498.1 MB, free: 3.266 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.209, allocations: 122.2 kB / 498.2 MB, free: 3.145 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.2091, allocations: 70.14 kB / 498.3 MB, free: 3.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.2093, allocations: 366.8 kB / 498.6 MB, free: 2.703 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003473/0.2097, allocations: 150.5 kB / 498.8 MB, free: 2.555 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003864/0.2101, allocations: 220.9 kB / 499 MB, free: 2.305 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007447/0.2109, allocations: 363.9 kB / 499.3 MB, free: 1.918 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.2109, allocations: 3.938 kB / 499.3 MB, free: 1.914 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001073/0.2119, allocations: 481.4 kB / 499.8 MB, free: 1.434 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.212, allocations: 4 kB / 499.8 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.212, allocations: 4 kB / 499.8 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000198/0.2122, allocations: 24.84 kB / 499.8 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004499/0.2127, allocations: 107.9 kB / 499.9 MB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/0.2141, allocations: 1.38 MB / 0.4896 GB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002999/0.2144, allocations: 27.97 kB / 0.4896 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.2145, allocations: 12 kB / 0.4896 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004184/0.2149, allocations: 257 kB / 0.4899 GB, free: 15.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002973/0.2152, allocations: 199 kB / 0.49 GB, free: 15.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005354/0.2158, allocations: 340 kB / 0.4904 GB, free: 14.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.154e-06/0.2158, allocations: 0 / 0.4904 GB, free: 14.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007831/0.2166, allocations: 442.2 kB / 0.4908 GB, free: 14.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.2166, allocations: 18.36 kB / 0.4908 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.2166, allocations: 4 kB / 0.4908 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.287e-05/0.2167, allocations: 20.86 kB / 0.4908 GB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003642/0.2171, allocations: 95.83 kB / 0.4909 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.2184, allocations: 1.379 MB / 0.4923 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002517/0.2186, allocations: 16.06 kB / 0.4923 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.2187, allocations: 16 kB / 0.4923 GB, free: 12.75 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.0002005/0.2189, allocations: 208.1 kB / 0.4925 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.901e-05/0.219, allocations: 59.27 kB / 0.4926 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001273/0.2191, allocations: 57.3 kB / 0.4926 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2191, allocations: 4 kB / 0.4926 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.2192, allocations: 3.938 kB / 0.4926 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.2192, allocations: 3.984 kB / 0.4926 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001912/0.2211, allocations: 1.065 MB / 0.4937 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.2211, allocations: 3.938 kB / 0.4937 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003721/0.2215, allocations: 71.95 kB / 0.4937 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001012/0.2216, allocations: 28.77 kB / 0.4938 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.233e-05/0.2216, allocations: 8 kB / 0.4938 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001181/0.2228, allocations: 1.375 MB / 0.4951 GB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2228, allocations: 8.094 kB / 0.4951 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.224, allocations: 0.6225 MB / 0.4957 GB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001723/0.2242, allocations: 132.4 kB / 0.4958 GB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.733e-05/0.2243, allocations: 11.98 kB / 0.4959 GB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/0.2246, allocations: 23.98 kB / 0.4959 GB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.176e-05/0.2247, allocations: 23.91 kB / 0.4959 GB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.2247, allocations: 12 kB / 0.4959 GB, free: 8.789 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005042/0.2252, allocations: 366.9 kB / 0.4963 GB, free: 8.434 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.2252, allocations: 4 kB / 0.4963 GB, free: 8.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006965/0.2259, allocations: 176 kB / 0.4964 GB, free: 8.258 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.0001552/0.2261, allocations: 111.2 kB / 0.4965 GB, free: 8.137 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.2277, allocations: 0.7555 MB / 0.4973 GB, free: 7.355 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.2277, allocations: 0 / 0.4973 GB, free: 7.355 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005393/0.2283, allocations: 275 kB / 0.4975 GB, free: 7.074 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007923/0.2291, allocations: 112.6 kB / 0.4977 GB, free: 6.969 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002852/0.2319, allocations: 1.576 MB / 0.4992 GB, free: 5.352 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006511/0.2326, allocations: 0.8863 MB / 0.5001 GB, free: 4.434 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.2328, allocations: 39.44 kB / 0.5001 GB, free: 4.395 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.2328, allocations: 0 / 0.5001 GB, free: 4.395 MB / 382.1 MB Notification: Performance of Templates: time 0.2099/0.4427, allocations: 9.513 MB / 0.5094 GB, free: 39.62 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)