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.001851/0.001851, allocations: 109.1 kB / 16.51 MB, free: 6.707 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.001926/0.001926, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.918/1.918, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001555/0.001555, allocations: 47.94 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1399, allocations: 46.61 MB / 326 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01085/0.1507, allocations: 8.02 MB / 334 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004912/0.1557, allocations: 2.642 MB / 336.6 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009079/0.1566, allocations: 23.94 kB / 336.6 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001499/0.1582, allocations: 498.1 kB / 337.1 MB, free: 9.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001121/0.1593, allocations: 405.1 kB / 337.5 MB, free: 9.262 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004593/0.1598, allocations: 219.8 kB / 337.7 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001252/0.1611, allocations: 1.401 MB / 339.1 MB, free: 7.641 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006892/0.1618, allocations: 0.5005 MB / 339.6 MB, free: 7.117 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005508/0.1623, allocations: 0.4938 MB / 340.1 MB, free: 6.621 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005329/0.1629, allocations: 0.556 MB / 340.7 MB, free: 6.062 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.163, allocations: 84 kB / 340.8 MB, free: 5.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000301/0.1633, allocations: 124 kB / 340.9 MB, free: 5.859 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001925/0.1635, allocations: 234.9 kB / 341.1 MB, free: 5.629 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005295/0.164, allocations: 0.6102 MB / 341.7 MB, free: 5.016 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001455/0.1655, allocations: 1.658 MB / 343.4 MB, free: 3.352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1655, allocations: 4 kB / 343.4 MB, free: 3.348 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1655, allocations: 0 / 343.4 MB, free: 3.348 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.1655, allocations: 0 / 343.4 MB, free: 3.348 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.002396/0.1679, allocations: 1.46 MB / 344.9 MB, free: 1.832 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.168, allocations: 8.031 kB / 344.9 MB, free: 1.824 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006677/0.1687, allocations: 191.3 kB / 345 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.1698, allocations: 0.7222 MB / 345.8 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.773e-05/0.1699, allocations: 78 kB / 345.8 MB, free: 0.793 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.17, allocations: 96 kB / 345.9 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.1715, allocations: 0.9385 MB / 346.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.109e-05/0.1716, allocations: 7.906 kB / 346.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.531e-05/0.1716, allocations: 40 kB / 346.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.1717, allocations: 27.94 kB / 347 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.1728, allocations: 0.6325 MB / 347.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004609/0.1775, allocations: 3.922 MB / 351.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000651/0.1781, allocations: 432.7 kB / 351.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005331/0.1787, allocations: 257.4 kB / 352.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.026e-05/0.1787, allocations: 4.328 kB / 352.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.1788, allocations: 46.81 kB / 352.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.034e-06/0.1788, allocations: 0 / 352.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002525/0.1813, allocations: 1.391 MB / 353.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.459e-05/0.1814, allocations: 89.11 kB / 353.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.1824, allocations: 0.8252 MB / 354.5 MB, free: 7.707 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.1824, allocations: 29.7 kB / 354.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003983/0.1828, allocations: 0.5565 MB / 355.1 MB, free: 7.105 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.183, allocations: 161.7 kB / 355.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.1832, allocations: 130.5 kB / 355.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1833, allocations: 333.9 kB / 355.7 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003221/0.1837, allocations: 173.9 kB / 355.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005042/0.1842, allocations: 456 kB / 356.3 MB, free: 5.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000832/0.185, allocations: 0.6622 MB / 357 MB, free: 4.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.185, allocations: 4 kB / 357 MB, free: 4.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001207/0.1862, allocations: 0.7628 MB / 357.8 MB, free: 4.156 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.1863, allocations: 12 kB / 357.8 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.1863, allocations: 8 kB / 357.8 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.1866, allocations: 89.55 kB / 357.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005002/0.1871, allocations: 159.9 kB / 358 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.1894, allocations: 2.868 MB / 360.9 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005466/0.19, allocations: 31.98 kB / 360.9 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.163e-05/0.19, allocations: 32 kB / 361 MB, free: 0.6914 MB / 302.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.0003862/0.1904, allocations: 264.2 kB / 361.2 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.1905, allocations: 82.97 kB / 361.3 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008948/0.1914, allocations: 0.4917 MB / 361.8 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.1914, allocations: 8.078 kB / 361.8 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1914, allocations: 4 kB / 361.8 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.1915, allocations: 7.922 kB / 361.8 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.1935, allocations: 1.43 MB / 363.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/0.1935, allocations: 7.938 kB / 363.3 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002857/0.1938, allocations: 71.89 kB / 363.3 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001938/0.194, allocations: 73.89 kB / 363.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.194, allocations: 12 kB / 363.4 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002305/0.1963, allocations: 2.856 MB / 366.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1964, allocations: 0 / 366.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.1976, allocations: 0.7574 MB / 367 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002986/0.1979, allocations: 208 kB / 367.2 MB, free: 9.984 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.88e-05/0.198, allocations: 11.94 kB / 367.2 MB, free: 9.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004083/0.1984, allocations: 23.98 kB / 367.3 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.322e-05/0.1985, allocations: 31.95 kB / 367.3 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.07e-05/0.1985, allocations: 20 kB / 367.3 MB, free: 9.898 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008176/0.1994, allocations: 0.5576 MB / 367.9 MB, free: 9.348 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.485e-06/0.1994, allocations: 0 / 367.9 MB, free: 9.348 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009405/0.2003, allocations: 215.9 kB / 368.1 MB, free: 9.137 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.0002764/0.2006, allocations: 127.2 kB / 368.2 MB, free: 9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.2019, allocations: 0.6708 MB / 368.9 MB, free: 8.305 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.202, allocations: 0 / 368.9 MB, free: 8.305 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007465/0.2027, allocations: 442.3 kB / 369.3 MB, free: 7.848 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.204, allocations: 230.7 kB / 369.5 MB, free: 7.625 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003274/0.2073, allocations: 2.124 MB / 371.7 MB, free: 5.453 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008124/0.2082, allocations: 1.005 MB / 372.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004672/0.2086, allocations: 107.2 kB / 372.8 MB, free: 4.312 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.2088, allocations: 55.44 kB / 372.8 MB, free: 4.258 MB / 318.1 MB Notification: Performance of SimCode: time 4.318e-06/0.2088, allocations: 0 / 372.8 MB, free: 4.258 MB / 318.1 MB Notification: Performance of Templates: time 0.2197/0.4285, allocations: 10.03 MB / 382.9 MB, free: 50.34 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)