Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.01108/0.01108, allocations: 100.8 kB / 15.73 MB, free: 5.953 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.002103/0.002103, allocations: 187 kB / 16.67 MB, free: 5.883 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.931/1.931, allocations: 205.1 MB / 222.6 MB, free: 4.367 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.001244/0.001244, allocations: 54.19 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1644, allocations: 46.63 MB / 373.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01476/0.1792, allocations: 8.032 MB / 381.2 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006594/0.1859, allocations: 2.665 MB / 383.9 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001544/0.1875, allocations: 23.94 kB / 383.9 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002463/0.19, allocations: 0.5871 MB / 384.5 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002404/0.1924, allocations: 0.4886 MB / 385 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.1935, allocations: 251.7 kB / 385.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003038/0.1965, allocations: 1.475 MB / 386.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00147/0.198, allocations: 0.5884 MB / 387.3 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001344/0.1994, allocations: 0.5564 MB / 387.8 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001307/0.2007, allocations: 0.6027 MB / 388.4 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000398/0.2011, allocations: 136 kB / 388.6 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007627/0.2019, allocations: 172 kB / 388.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004708/0.2024, allocations: 279 kB / 389 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001637/0.204, allocations: 0.661 MB / 389.7 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002828/0.2068, allocations: 1.725 MB / 391.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.2069, allocations: 3.984 kB / 391.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.2069, allocations: 7.938 kB / 391.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.199e-05/0.207, allocations: 0 / 391.4 MB, free: 14.93 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.004226/0.2112, allocations: 1.441 MB / 392.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.2113, allocations: 12.03 kB / 392.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/0.2123, allocations: 187.3 kB / 393.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002069/0.2144, allocations: 0.7418 MB / 393.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.495e-05/0.2145, allocations: 74 kB / 393.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002219/0.2148, allocations: 103.9 kB / 394 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002366/0.2171, allocations: 0.9308 MB / 394.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.825e-05/0.2172, allocations: 3.984 kB / 394.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.2173, allocations: 40 kB / 394.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.807e-05/0.2174, allocations: 24 kB / 395 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001728/0.2191, allocations: 0.6402 MB / 395.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007101/0.2262, allocations: 3.883 MB / 399.5 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009101/0.2272, allocations: 441.7 kB / 399.9 MB, free: 6.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007256/0.2279, allocations: 273.2 kB / 400.2 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.599e-05/0.228, allocations: 8.328 kB / 400.2 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/0.228, allocations: 34.89 kB / 400.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 3.306e-06/0.228, allocations: 0 / 400.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.003715/0.2318, allocations: 1.4 MB / 401.6 MB, free: 4.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.2319, allocations: 89.09 kB / 401.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001981/0.2339, allocations: 0.8214 MB / 402.5 MB, free: 3.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.881e-05/0.2339, allocations: 37.7 kB / 402.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005559/0.2345, allocations: 0.5487 MB / 403.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.2347, allocations: 161.7 kB / 403.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002462/0.2349, allocations: 130.5 kB / 403.4 MB, free: 2.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.2351, allocations: 334 kB / 403.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004611/0.2356, allocations: 169.9 kB / 403.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007249/0.2363, allocations: 460 kB / 404.3 MB, free: 1.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.2376, allocations: 0.6546 MB / 405 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/0.2376, allocations: 4 kB / 405 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001945/0.2396, allocations: 0.7745 MB / 405.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.191e-05/0.2396, allocations: 8 kB / 405.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.76e-05/0.2397, allocations: 12 kB / 405.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003889/0.2401, allocations: 81.61 kB / 405.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006801/0.2407, allocations: 151.9 kB / 406 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003543/0.2443, allocations: 3.149 MB / 409.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008944/0.2452, allocations: 35.89 kB / 409.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-05/0.2453, allocations: 32 kB / 409.2 MB, free: 12.01 MB / 350.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.0006131/0.2459, allocations: 269.6 kB / 409.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/0.2462, allocations: 86.97 kB / 409.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.2475, allocations: 491.5 kB / 410.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.2475, allocations: 11.94 kB / 410.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.2475, allocations: 0 / 410.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.2475, allocations: 3.984 kB / 410.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003177/0.2507, allocations: 1.435 MB / 411.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.2507, allocations: 0 / 411.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003997/0.2511, allocations: 79.83 kB / 411.6 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002854/0.2514, allocations: 70.03 kB / 411.7 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.2515, allocations: 15.98 kB / 411.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003148/0.2547, allocations: 3.114 MB / 414.8 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/0.2547, allocations: 7.969 kB / 414.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001698/0.2564, allocations: 0.7661 MB / 415.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005336/0.2569, allocations: 196 kB / 415.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.2572, allocations: 15.94 kB / 415.8 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006341/0.2578, allocations: 27.98 kB / 415.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.258, allocations: 40.02 kB / 415.8 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-05/0.258, allocations: 12 kB / 415.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001217/0.2592, allocations: 0.5654 MB / 416.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2593, allocations: 0 / 416.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001313/0.2606, allocations: 208 kB / 416.6 MB, free: 4.176 MB / 350.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.0003073/0.2609, allocations: 119.2 kB / 416.7 MB, free: 4.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.2626, allocations: 0.6866 MB / 417.4 MB, free: 3.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.2626, allocations: 0.75 kB / 417.4 MB, free: 3.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008358/0.2635, allocations: 446 kB / 417.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.265, allocations: 235.4 kB / 418.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004283/0.2693, allocations: 1.707 MB / 419.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.2704, allocations: 1.001 MB / 420.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006047/0.271, allocations: 111.2 kB / 420.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.2712, allocations: 59.44 kB / 421 MB, free: 15.69 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.2712, allocations: 0 / 421 MB, free: 15.69 MB / 366.1 MB Notification: Performance of Templates: time 0.02959/0.3008, allocations: 10.66 MB / 431.6 MB, free: 5.008 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)