Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.008769/0.008769, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.001603/0.001603, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.986/1.986, allocations: 205.1 MB / 222.6 MB, free: 4.539 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.001405/0.001405, allocations: 52.14 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1672, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01239/0.1796, allocations: 8.135 MB / 381.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006695/0.1864, allocations: 2.727 MB / 384.1 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00158/0.1881, allocations: 31.88 kB / 384.1 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001854/0.1899, allocations: 0.5434 MB / 384.6 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001582/0.1915, allocations: 432.5 kB / 385 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008456/0.1924, allocations: 363.5 kB / 385.4 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002302/0.1947, allocations: 1.507 MB / 386.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009409/0.1957, allocations: 0.6125 MB / 387.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008235/0.1965, allocations: 0.5524 MB / 388.1 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009057/0.1974, allocations: 0.6026 MB / 388.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001815/0.1976, allocations: 140 kB / 388.8 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003886/0.198, allocations: 180 kB / 389 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003206/0.1983, allocations: 290.9 kB / 389.3 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006506/0.199, allocations: 0.6724 MB / 389.9 MB, free: 460 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00239/0.2014, allocations: 1.731 MB / 391.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.2014, allocations: 4 kB / 391.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2014, allocations: 0 / 391.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.602e-05/0.2015, allocations: 0 / 391.7 MB, free: 14.71 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.003014/0.2045, allocations: 1.545 MB / 393.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.2045, allocations: 8.031 kB / 393.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000626/0.2052, allocations: 200 kB / 393.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001367/0.2065, allocations: 0.8024 MB / 394.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.687e-05/0.2066, allocations: 77.94 kB / 394.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.2068, allocations: 103.9 kB / 394.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/0.2088, allocations: 0.9536 MB / 395.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.884e-05/0.2088, allocations: 7.953 kB / 395.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.649e-05/0.2089, allocations: 40 kB / 395.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.517e-05/0.2089, allocations: 24 kB / 395.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.2101, allocations: 0.6441 MB / 396.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005472/0.2156, allocations: 4.089 MB / 400.2 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009951/0.2166, allocations: 427.2 kB / 400.6 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00028/0.2169, allocations: 164.8 kB / 400.7 MB, free: 5.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.546e-05/0.217, allocations: 4 kB / 400.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.167e-05/0.2171, allocations: 34.56 kB / 400.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.354e-06/0.2171, allocations: 0 / 400.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002578/0.2196, allocations: 1.337 MB / 402.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.225e-05/0.2197, allocations: 110.8 kB / 402.2 MB, free: 3.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00119/0.2209, allocations: 0.898 MB / 403.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.182e-05/0.221, allocations: 37.64 kB / 403.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005054/0.2215, allocations: 0.6047 MB / 403.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.2216, allocations: 154.7 kB / 403.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/0.2218, allocations: 142.5 kB / 404.1 MB, free: 1.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.222, allocations: 330 kB / 404.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.2223, allocations: 180.8 kB / 404.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005579/0.2229, allocations: 493.6 kB / 405 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009161/0.2238, allocations: 0.6829 MB / 405.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.2238, allocations: 4 kB / 405.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001244/0.2251, allocations: 0.7591 MB / 406.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.2251, allocations: 8 kB / 406.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.2251, allocations: 12 kB / 406.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001977/0.2254, allocations: 32.84 kB / 406.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005436/0.2259, allocations: 167.7 kB / 406.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/0.2271, allocations: 1.386 MB / 408.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005893/0.2277, allocations: 48.03 kB / 408.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.444e-05/0.2277, allocations: 36 kB / 408.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006476/0.2284, allocations: 350.1 kB / 408.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005066/0.2289, allocations: 477.7 kB / 409 MB, free: 12.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008424/0.2298, allocations: 0.6676 MB / 409.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.84e-06/0.2298, allocations: 4 kB / 409.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001154/0.2309, allocations: 0.7162 MB / 410.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.231, allocations: 8 kB / 410.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.231, allocations: 19.92 kB / 410.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.922e-05/0.2311, allocations: 37.53 kB / 410.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005112/0.2316, allocations: 175.7 kB / 410.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.2327, allocations: 1.39 MB / 412 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005611/0.2333, allocations: 31.98 kB / 412 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.2333, allocations: 36 kB / 412.1 MB, free: 8.898 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.000239/0.2336, allocations: 239.8 kB / 412.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.2337, allocations: 103.4 kB / 412.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000859/0.2346, allocations: 427.2 kB / 412.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.2346, allocations: 7.984 kB / 412.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2346, allocations: 0 / 412.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.2346, allocations: 7.938 kB / 412.8 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/0.2367, allocations: 1.371 MB / 414.2 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.2368, allocations: 7.938 kB / 414.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003767/0.2371, allocations: 80.11 kB / 414.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.605e-05/0.2373, allocations: 24.84 kB / 414.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/0.2373, allocations: 12 kB / 414.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001017/0.2383, allocations: 1.367 MB / 415.7 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2383, allocations: 0 / 415.7 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.2395, allocations: 0.7306 MB / 416.4 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003161/0.2398, allocations: 212.4 kB / 416.6 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.545e-05/0.2399, allocations: 12 kB / 416.6 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003766/0.2403, allocations: 19.98 kB / 416.7 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.593e-05/0.2403, allocations: 27.91 kB / 416.7 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.2404, allocations: 16 kB / 416.7 MB, free: 3.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008459/0.2412, allocations: 0.6055 MB / 417.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2412, allocations: 4 kB / 417.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001214/0.2425, allocations: 355.9 kB / 417.7 MB, free: 2.988 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.0002483/0.2427, allocations: 127.1 kB / 417.8 MB, free: 2.852 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001771/0.2445, allocations: 0.9788 MB / 418.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2445, allocations: 3.938 kB / 418.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004466/0.245, allocations: 286.6 kB / 419 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.2461, allocations: 247.7 kB / 419.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003323/0.2495, allocations: 1.851 MB / 421.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006538/0.2501, allocations: 1.017 MB / 422.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004914/0.2506, allocations: 131.4 kB / 422.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.2508, allocations: 59.44 kB / 422.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of SimCode: time 1.243e-06/0.2508, allocations: 0 / 422.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of Templates: time 0.022/0.2728, allocations: 10.8 MB / 433.1 MB, free: 3.348 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)