Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.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_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001749/0.001749, 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.00274/0.00274, 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 2.346/2.346, allocations: 227.4 MB / 246.9 MB, free: 9.016 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3985/0.3985, allocations: 46.09 MB / 344.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002557/0.002557, allocations: 80.7 kB / 417.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1738/0.1764, allocations: 62.44 MB / 479.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.009808/0.1862, allocations: 4.038 MB / 484 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004386/0.1906, allocations: 1.488 MB / 485.5 MB, free: 128 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008083/0.1915, allocations: 11.94 kB / 485.5 MB, free: 116 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00133/0.1929, allocations: 227 kB / 485.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000814/0.1937, allocations: 115.1 kB / 485.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007817/0.1945, allocations: 159.9 kB / 486 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.1958, allocations: 0.5919 MB / 486.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000685/0.1965, allocations: 243.4 kB / 486.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006406/0.1972, allocations: 207 kB / 487 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005607/0.1978, allocations: 250.7 kB / 487.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001851/0.198, allocations: 40 kB / 487.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002045/0.1982, allocations: 39.94 kB / 487.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.1984, allocations: 99.55 kB / 487.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005018/0.1989, allocations: 270.5 kB / 487.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008949/0.1998, allocations: 0.5494 MB / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1998, allocations: 0 / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1998, allocations: 0 / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.711e-05/0.1999, allocations: 0 / 488.2 MB, free: 13.34 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.002641/0.2025, allocations: 0.83 MB / 489.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.2026, allocations: 8.875 kB / 489.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002276/0.2028, allocations: 64.19 kB / 489.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009784/0.2038, allocations: 403.6 kB / 489.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.207e-05/0.2039, allocations: 37.38 kB / 489.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.204, allocations: 48.28 kB / 489.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.2055, allocations: 463.2 kB / 490.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.934e-05/0.2055, allocations: 4 kB / 490.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.39e-05/0.2056, allocations: 20 kB / 490.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.2057, allocations: 12 kB / 490.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.2068, allocations: 311.8 kB / 490.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004249/0.2111, allocations: 1.673 MB / 492.1 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.2126, allocations: 379.5 kB / 492.4 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003982/0.213, allocations: 120.6 kB / 492.6 MB, free: 8.793 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.943e-05/0.213, allocations: 4 kB / 492.6 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.531e-05/0.2131, allocations: 34.5 kB / 492.6 MB, free: 8.746 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 3.336e-06/0.2131, allocations: 0 / 492.6 MB, free: 8.746 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.002946/0.2161, allocations: 0.8887 MB / 493.5 MB, free: 7.781 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.2161, allocations: 55.41 kB / 493.5 MB, free: 7.715 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000832/0.217, allocations: 397.7 kB / 493.9 MB, free: 7.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.742e-05/0.217, allocations: 29.7 kB / 494 MB, free: 7.285 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002896/0.2173, allocations: 275.8 kB / 494.2 MB, free: 7.012 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.2175, allocations: 90.73 kB / 494.3 MB, free: 6.922 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/0.2177, allocations: 61.55 kB / 494.4 MB, free: 6.855 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.2179, allocations: 350.8 kB / 494.7 MB, free: 6.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003885/0.2183, allocations: 92.81 kB / 494.8 MB, free: 6.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004289/0.2188, allocations: 166.5 kB / 495 MB, free: 6.223 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000797/0.2196, allocations: 255.8 kB / 495.2 MB, free: 5.949 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.2196, allocations: 0 / 495.2 MB, free: 5.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001185/0.2208, allocations: 353.8 kB / 495.6 MB, free: 5.594 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.2208, allocations: 7.938 kB / 495.6 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.2209, allocations: 4 kB / 495.6 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002348/0.2211, allocations: 24.84 kB / 495.6 MB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005277/0.2216, allocations: 80.05 kB / 495.7 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/0.2234, allocations: 1.281 MB / 497 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003754/0.2238, allocations: 19.97 kB / 497 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.079e-05/0.2238, allocations: 12 kB / 497 MB, free: 4.031 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005247/0.2244, allocations: 200.1 kB / 497.2 MB, free: 3.832 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003433/0.2247, allocations: 145 kB / 497.3 MB, free: 3.664 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006267/0.2254, allocations: 247.6 kB / 497.6 MB, free: 3.395 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.757e-06/0.2254, allocations: 0 / 497.6 MB, free: 3.395 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.000987/0.2264, allocations: 330 kB / 497.9 MB, free: 3.062 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.2264, allocations: 4 kB / 497.9 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.2264, allocations: 4.25 kB / 497.9 MB, free: 3.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001373/0.2266, allocations: 28.84 kB / 497.9 MB, free: 3.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004535/0.2271, allocations: 63.91 kB / 498 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.2285, allocations: 1.288 MB / 499.3 MB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003438/0.2289, allocations: 8 kB / 499.3 MB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.229, allocations: 19.94 kB / 499.3 MB, free: 1.516 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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.0002148/0.2292, allocations: 192.4 kB / 499.5 MB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.2293, allocations: 35.53 kB / 499.5 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.2295, allocations: 47.59 kB / 499.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.2295, allocations: 7.938 kB / 499.6 MB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.2295, allocations: 4 kB / 499.6 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.2295, allocations: 0 / 499.6 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002164/0.2317, allocations: 0.8395 MB / 0.4887 GB, free: 328 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.2317, allocations: 0 / 0.4887 GB, free: 328 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004606/0.2322, allocations: 55.91 kB / 0.4888 GB, free: 272 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001395/0.2324, allocations: 20.84 kB / 0.4888 GB, free: 248 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.2324, allocations: 11.94 kB / 0.4888 GB, free: 236 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001466/0.2339, allocations: 1.291 MB / 0.49 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.852e-06/0.2339, allocations: 3.938 kB / 0.49 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.2352, allocations: 489.4 kB / 0.4905 GB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.2355, allocations: 116.7 kB / 0.4906 GB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.571e-05/0.2356, allocations: 11.94 kB / 0.4906 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003956/0.236, allocations: 19.98 kB / 0.4907 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.776e-05/0.2361, allocations: 19.97 kB / 0.4907 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-05/0.2361, allocations: 4 kB / 0.4907 GB, free: 14.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005741/0.2367, allocations: 283.2 kB / 0.491 GB, free: 13.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2367, allocations: 4 kB / 0.491 GB, free: 13.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001108/0.2378, allocations: 140 kB / 0.4911 GB, free: 13.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.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 (24): * Single equations (assignments): 23 * 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.0001938/0.238, allocations: 103.3 kB / 0.4912 GB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001752/0.2398, allocations: 0.5916 MB / 0.4918 GB, free: 12.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.2398, allocations: 0 / 0.4918 GB, free: 12.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000562/0.2404, allocations: 226.6 kB / 0.492 GB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.2415, allocations: 67.97 kB / 0.492 GB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003341/0.2448, allocations: 1.263 MB / 0.4933 GB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006309/0.2455, allocations: 0.827 MB / 0.4941 GB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.2457, allocations: 35.42 kB / 0.4941 GB, free: 10.48 MB / 382.1 MB Notification: Performance of SimCode: time 4.028e-06/0.2457, allocations: 0 / 0.4941 GB, free: 10.48 MB / 382.1 MB Notification: Performance of Templates: time 0.01703/0.2627, allocations: 7.154 MB / 0.5011 GB, free: 3.316 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)