Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001549/0.001548, allocations: 103.4 kB / 16.62 MB, free: 6.809 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.001573/0.001573, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.805/1.805, allocations: 205.1 MB / 223.4 MB, free: 12.46 MB / 190.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.001635/0.001635, allocations: 48.14 kB / 279.5 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1664/0.1681, allocations: 46.63 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01023/0.1784, allocations: 8.004 MB / 334.2 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006036/0.1845, allocations: 2.635 MB / 336.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00191/0.1865, allocations: 27.88 kB / 336.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002533/0.1891, allocations: 0.4942 MB / 337.3 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003529/0.1926, allocations: 405.2 kB / 337.7 MB, free: 9.172 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.1937, allocations: 211.8 kB / 337.9 MB, free: 8.965 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003116/0.1968, allocations: 1.471 MB / 339.4 MB, free: 7.488 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0011/0.198, allocations: 0.5807 MB / 340 MB, free: 6.887 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001346/0.1993, allocations: 0.5641 MB / 340.5 MB, free: 6.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001173/0.2005, allocations: 0.5911 MB / 341.1 MB, free: 5.727 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000235/0.2008, allocations: 136 kB / 341.2 MB, free: 5.594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000585/0.2014, allocations: 176 kB / 341.4 MB, free: 5.422 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000356/0.2017, allocations: 279 kB / 341.7 MB, free: 5.148 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.2028, allocations: 0.6687 MB / 342.4 MB, free: 4.477 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00231/0.2051, allocations: 1.701 MB / 344.1 MB, free: 2.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.2051, allocations: 4 kB / 344.1 MB, free: 2.766 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2051, allocations: 0 / 344.1 MB, free: 2.766 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.083e-05/0.2052, allocations: 3.938 kB / 344.1 MB, free: 2.762 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003289/0.2085, allocations: 1.456 MB / 345.5 MB, free: 1.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.914e-05/0.2086, allocations: 12.03 kB / 345.5 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000931/0.2095, allocations: 183.4 kB / 345.7 MB, free: 1.059 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.2109, allocations: 0.73 MB / 346.4 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.866e-05/0.211, allocations: 73.94 kB / 346.5 MB, free: 216 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.2112, allocations: 100 kB / 346.6 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.213, allocations: 0.9385 MB / 347.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.287e-05/0.2131, allocations: 7.906 kB / 347.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.768e-05/0.2132, allocations: 44 kB / 347.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/0.2132, allocations: 24 kB / 347.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.2146, allocations: 0.6286 MB / 348.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00698/0.2215, allocations: 3.919 MB / 352.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009073/0.2225, allocations: 436.7 kB / 352.6 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.2231, allocations: 257.4 kB / 352.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.902e-05/0.2231, allocations: 4.328 kB / 352.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/0.2232, allocations: 38.83 kB / 352.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.806e-06/0.2232, allocations: 0 / 352.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.003536/0.2267, allocations: 1.395 MB / 354.3 MB, free: 8.066 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.2269, allocations: 89.09 kB / 354.4 MB, free: 7.961 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001355/0.2282, allocations: 0.8252 MB / 355.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.006e-05/0.2283, allocations: 33.7 kB / 355.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004701/0.2288, allocations: 0.5526 MB / 355.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.2289, allocations: 161.7 kB / 355.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/0.2292, allocations: 126.5 kB / 356.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.2294, allocations: 334 kB / 356.4 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003411/0.2297, allocations: 169.9 kB / 356.6 MB, free: 5.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006458/0.2304, allocations: 460 kB / 357 MB, free: 5.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.2315, allocations: 0.6661 MB / 357.7 MB, free: 4.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.2315, allocations: 3.938 kB / 357.7 MB, free: 4.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001579/0.2331, allocations: 0.7706 MB / 358.5 MB, free: 3.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.679e-05/0.2331, allocations: 8 kB / 358.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.347e-05/0.2332, allocations: 12 kB / 358.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003611/0.2335, allocations: 81.88 kB / 358.6 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005261/0.2341, allocations: 155.7 kB / 358.7 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003179/0.2373, allocations: 3.146 MB / 361.9 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007502/0.238, allocations: 31.98 kB / 361.9 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.723e-05/0.2381, allocations: 32 kB / 361.9 MB, free: 15.83 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005864/0.2387, allocations: 268.1 kB / 362.2 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.2388, allocations: 86.97 kB / 362.3 MB, free: 15.47 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/0.2399, allocations: 0.4917 MB / 362.8 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.2399, allocations: 4 kB / 362.8 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.2399, allocations: 7.938 kB / 362.8 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.2399, allocations: 0 / 362.8 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.2422, allocations: 1.442 MB / 364.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.2422, allocations: 4 kB / 364.2 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002956/0.2425, allocations: 63.91 kB / 364.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002303/0.2428, allocations: 77.89 kB / 364.3 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.2428, allocations: 8 kB / 364.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002565/0.2454, allocations: 3.13 MB / 367.5 MB, free: 9.859 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2454, allocations: 0 / 367.5 MB, free: 9.859 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.2468, allocations: 0.7573 MB / 368.2 MB, free: 9.059 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003804/0.2472, allocations: 208 kB / 368.4 MB, free: 8.836 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.2473, allocations: 11.94 kB / 368.5 MB, free: 8.824 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004139/0.2477, allocations: 23.98 kB / 368.5 MB, free: 8.801 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.792e-05/0.2478, allocations: 31.95 kB / 368.5 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.2478, allocations: 19.94 kB / 368.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007668/0.2486, allocations: 0.5576 MB / 369.1 MB, free: 8.199 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2486, allocations: 4 kB / 369.1 MB, free: 8.195 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009049/0.2495, allocations: 211.9 kB / 369.3 MB, free: 7.988 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (38): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.0002423/0.2498, allocations: 123.2 kB / 369.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.2511, allocations: 0.6988 MB / 370.1 MB, free: 7.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.2511, allocations: 3.938 kB / 370.1 MB, free: 7.129 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006644/0.2518, allocations: 437.1 kB / 370.6 MB, free: 6.676 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/0.253, allocations: 226.9 kB / 370.8 MB, free: 6.457 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.2566, allocations: 2.133 MB / 372.9 MB, free: 4.273 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006788/0.2573, allocations: 1.009 MB / 373.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005058/0.2578, allocations: 115.2 kB / 374 MB, free: 3.121 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/0.258, allocations: 55.44 kB / 374.1 MB, free: 3.066 MB / 318.1 MB Notification: Performance of SimCode: time 1.222e-06/0.258, allocations: 0 / 374.1 MB, free: 3.066 MB / 318.1 MB Notification: Performance of Templates: time 0.215/0.473, allocations: 10.45 MB / 384.5 MB, free: 50.72 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)