Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01701/0.01701, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.003479/0.003478, allocations: 197 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.007/2.007, allocations: 205.1 MB / 222.5 MB, free: 4.52 MB / 174.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.001386/0.001386, allocations: 55.22 kB / 326.6 MB, free: 14.48 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1379, allocations: 46.63 MB / 373.2 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01234/0.1503, allocations: 8.128 MB / 381.3 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007086/0.1575, allocations: 2.739 MB / 384.1 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002799/0.1604, allocations: 27.94 kB / 384.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003543/0.164, allocations: 0.5628 MB / 384.6 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003412/0.1675, allocations: 480.5 kB / 385.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001661/0.1692, allocations: 359.5 kB / 385.5 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003992/0.1732, allocations: 1.503 MB / 387 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001497/0.1747, allocations: 0.6164 MB / 387.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001339/0.1761, allocations: 0.5602 MB / 388.1 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001349/0.1774, allocations: 0.6104 MB / 388.8 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005319/0.178, allocations: 140 kB / 388.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001053/0.1791, allocations: 176 kB / 389.1 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006568/0.1797, allocations: 286.9 kB / 389.3 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001546/0.1813, allocations: 0.6647 MB / 390 MB, free: 492 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003422/0.1847, allocations: 1.732 MB / 391.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.105e-05/0.1848, allocations: 4 kB / 391.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.145e-06/0.1848, allocations: 0 / 391.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001132/0.1849, allocations: 0 / 391.7 MB, free: 14.73 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.005369/0.1903, allocations: 1.503 MB / 393.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.1904, allocations: 11.97 kB / 393.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001233/0.1916, allocations: 183.2 kB / 393.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00276/0.1944, allocations: 0.8017 MB / 394.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.1945, allocations: 77.88 kB / 394.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004242/0.195, allocations: 107.9 kB / 394.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003381/0.1984, allocations: 0.9458 MB / 395.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-05/0.1985, allocations: 4 kB / 395.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001504/0.1986, allocations: 44 kB / 395.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4e-05/0.1987, allocations: 24 kB / 395.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002426/0.2011, allocations: 0.6324 MB / 396.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01106/0.2122, allocations: 4.088 MB / 400.2 MB, free: 5.965 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001595/0.2139, allocations: 435.2 kB / 400.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004673/0.2144, allocations: 164.7 kB / 400.7 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.722e-05/0.2145, allocations: 8 kB / 400.8 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.783e-05/0.2146, allocations: 34.56 kB / 400.8 MB, free: 5.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 6.032e-06/0.2146, allocations: 0 / 400.8 MB, free: 5.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.004756/0.2193, allocations: 1.315 MB / 402.1 MB, free: 3.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.2195, allocations: 106.8 kB / 402.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002677/0.2222, allocations: 0.8979 MB / 403.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.883e-05/0.2223, allocations: 33.7 kB / 403.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000776/0.223, allocations: 0.5915 MB / 403.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002283/0.2233, allocations: 157.8 kB / 403.9 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003192/0.2236, allocations: 138.5 kB / 404 MB, free: 1.938 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003558/0.224, allocations: 329.9 kB / 404.3 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005572/0.2246, allocations: 176.8 kB / 404.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/0.2256, allocations: 493.7 kB / 405 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/0.2275, allocations: 0.6829 MB / 405.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/0.2275, allocations: 7.938 kB / 405.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002835/0.2304, allocations: 0.7465 MB / 406.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.596e-05/0.2304, allocations: 13.09 kB / 406.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.383e-05/0.2305, allocations: 8 kB / 406.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003433/0.2308, allocations: 37.28 kB / 406.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.2319, allocations: 175.7 kB / 406.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.2343, allocations: 1.39 MB / 408 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.2356, allocations: 35.98 kB / 408.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.2358, allocations: 32 kB / 408.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001274/0.2371, allocations: 354.1 kB / 408.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001186/0.2383, allocations: 481.8 kB / 408.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001844/0.2401, allocations: 0.6676 MB / 409.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.895e-05/0.2402, allocations: 4 kB / 409.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00266/0.2428, allocations: 0.7199 MB / 410.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.986e-05/0.2429, allocations: 12 kB / 410.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.543e-05/0.2429, allocations: 8 kB / 410.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002299/0.2432, allocations: 32.84 kB / 410.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.2443, allocations: 175.7 kB / 410.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002001/0.2463, allocations: 1.386 MB / 411.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.2478, allocations: 32.16 kB / 412 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.2479, allocations: 39.98 kB / 412 MB, free: 9.039 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0005435/0.2485, allocations: 243.8 kB / 412.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004463/0.249, allocations: 94.78 kB / 412.3 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/0.2506, allocations: 423.2 kB / 412.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.2507, allocations: 8 kB / 412.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.2507, allocations: 0 / 412.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.625e-05/0.2507, allocations: 7.922 kB / 412.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00518/0.2559, allocations: 1.371 MB / 414.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.802e-05/0.256, allocations: 4 kB / 414.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000871/0.2568, allocations: 83.83 kB / 414.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001864/0.257, allocations: 12.86 kB / 414.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.408e-05/0.2571, allocations: 19.98 kB / 414.3 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001805/0.259, allocations: 1.367 MB / 415.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/0.259, allocations: 12.03 kB / 415.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002139/0.2611, allocations: 0.7261 MB / 416.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009747/0.2621, allocations: 203.9 kB / 416.6 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004028/0.2626, allocations: 15.98 kB / 416.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009445/0.2635, allocations: 19.98 kB / 416.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.2637, allocations: 27.97 kB / 416.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.267e-05/0.2637, allocations: 12 kB / 416.6 MB, free: 4.109 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002115/0.2659, allocations: 0.6095 MB / 417.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.2659, allocations: 0 / 417.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003294/0.2692, allocations: 351.9 kB / 417.6 MB, free: 3.145 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * 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.0005399/0.2698, allocations: 131 kB / 417.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003788/0.2736, allocations: 0.9816 MB / 418.7 MB, free: 2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/0.2736, allocations: 0 / 418.7 MB, free: 2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008092/0.2744, allocations: 284 kB / 419 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002544/0.277, allocations: 247.3 kB / 419.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007118/0.2841, allocations: 1.815 MB / 421 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001384/0.2856, allocations: 1.021 MB / 422 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00123/0.2869, allocations: 123.4 kB / 422.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003251/0.2872, allocations: 67.42 kB / 422.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of SimCode: time 2.074e-06/0.2873, allocations: 0 / 422.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of Templates: time 0.04307/0.3304, allocations: 10.8 MB / 433 MB, free: 3.539 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)