Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001118/0.001118, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001283/0.001283, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.005/2.005, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.0006005/0.0006007, allocations: 12 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3785, allocations: 47.59 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008745/0.3874, allocations: 6.429 MB / 332.9 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007837/0.3953, allocations: 2.543 MB / 335.4 MB, free: 10.36 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001884/0.3973, allocations: 21.97 kB / 335.4 MB, free: 10.36 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002072/0.3994, allocations: 480.2 kB / 335.9 MB, free: 10.01 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002122/0.4015, allocations: 482.2 kB / 336.4 MB, free: 9.566 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005989/0.4021, allocations: 155.8 kB / 336.5 MB, free: 9.414 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002165/0.4043, allocations: 1.034 MB / 337.6 MB, free: 8.379 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007654/0.4051, allocations: 435.1 kB / 338 MB, free: 7.938 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008691/0.406, allocations: 426.2 kB / 338.4 MB, free: 7.52 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006243/0.4066, allocations: 485.8 kB / 338.9 MB, free: 7.043 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.4067, allocations: 63.94 kB / 338.9 MB, free: 6.98 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004255/0.4071, allocations: 104 kB / 339 MB, free: 6.879 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.4073, allocations: 183.2 kB / 339.2 MB, free: 6.699 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003668/0.4077, allocations: 261.1 kB / 339.5 MB, free: 6.438 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001411/0.4091, allocations: 1.297 MB / 340.8 MB, free: 5.137 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.4091, allocations: 0 / 340.8 MB, free: 5.137 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4092, allocations: 0 / 340.8 MB, free: 5.137 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.113e-05/0.4092, allocations: 0 / 340.8 MB, free: 5.137 MB / 270.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.002454/0.4116, allocations: 1.254 MB / 342 MB, free: 3.828 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.4117, allocations: 8.031 kB / 342 MB, free: 3.82 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005879/0.4123, allocations: 174.5 kB / 342.2 MB, free: 3.648 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.4138, allocations: 0.6951 MB / 342.9 MB, free: 2.91 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.251e-05/0.4139, allocations: 74 kB / 343 MB, free: 2.836 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.414, allocations: 103.9 kB / 343.1 MB, free: 2.734 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/0.4158, allocations: 0.919 MB / 344 MB, free: 1.789 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.52e-05/0.4159, allocations: 4 kB / 344 MB, free: 1.785 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.765e-05/0.4159, allocations: 40 kB / 344 MB, free: 1.746 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.96e-05/0.4161, allocations: 27.98 kB / 344.1 MB, free: 1.719 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.4174, allocations: 0.6402 MB / 344.7 MB, free: 1.078 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006613/0.424, allocations: 3.891 MB / 348.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008081/0.4249, allocations: 441.4 kB / 349 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.014e-05/0.4249, allocations: 8.312 kB / 349 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.425, allocations: 38.89 kB / 349.1 MB, free: 12.45 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 2.976e-06/0.425, allocations: 0 / 349.1 MB, free: 12.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=44): time 0.002896/0.4279, allocations: 1.377 MB / 350.5 MB, free: 11 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.706e-05/0.428, allocations: 85.11 kB / 350.5 MB, free: 10.9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.429, allocations: 0.7589 MB / 351.3 MB, free: 10.13 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.035e-05/0.4291, allocations: 41.64 kB / 351.3 MB, free: 10.08 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004278/0.4295, allocations: 0.5681 MB / 351.9 MB, free: 9.504 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.4297, allocations: 153.8 kB / 352.1 MB, free: 9.352 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.4297, allocations: 15.94 kB / 352.1 MB, free: 9.336 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4298, allocations: 337.9 kB / 352.4 MB, free: 9 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003282/0.4302, allocations: 161.9 kB / 352.6 MB, free: 8.844 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005679/0.4308, allocations: 460 kB / 353 MB, free: 8.262 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004351/0.4312, allocations: 237.8 kB / 353.2 MB, free: 8.031 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4312, allocations: 0 / 353.2 MB, free: 8.031 MB / 286.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001284/0.4325, allocations: 0.7478 MB / 354 MB, free: 7.27 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.4325, allocations: 12.02 kB / 354 MB, free: 7.258 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.4326, allocations: 16 kB / 354 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002642/0.4328, allocations: 69.69 kB / 354.1 MB, free: 7.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004877/0.4333, allocations: 155.7 kB / 354.2 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002242/0.4356, allocations: 2.814 MB / 357.1 MB, free: 3.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005957/0.4362, allocations: 35.84 kB / 357.1 MB, free: 3.895 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.32e-05/0.4363, allocations: 36.06 kB / 357.1 MB, free: 3.859 MB / 286.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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004923/0.4368, allocations: 261.8 kB / 357.4 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.4369, allocations: 86.97 kB / 357.5 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008785/0.4378, allocations: 483.7 kB / 357.9 MB, free: 3.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.4378, allocations: 4 kB / 357.9 MB, free: 3.016 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.4378, allocations: 0 / 357.9 MB, free: 3.016 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.4378, allocations: 3.984 kB / 357.9 MB, free: 3.012 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/0.4399, allocations: 1.388 MB / 359.3 MB, free: 1.539 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.4399, allocations: 4 kB / 359.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003022/0.4402, allocations: 67.91 kB / 359.4 MB, free: 1.469 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001667/0.4404, allocations: 66.03 kB / 359.5 MB, free: 1.398 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.4404, allocations: 12 kB / 359.5 MB, free: 1.387 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002147/0.4426, allocations: 2.794 MB / 362.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4426, allocations: 192 / 362.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/0.4438, allocations: 0.843 MB / 363.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002828/0.4441, allocations: 188.1 kB / 363.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.593e-05/0.4442, allocations: 12 kB / 363.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003618/0.4446, allocations: 31.98 kB / 363.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.037e-05/0.4447, allocations: 35.97 kB / 363.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.4447, allocations: 20 kB / 363.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007626/0.4455, allocations: 0.5185 MB / 363.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4455, allocations: 0 / 363.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008298/0.4463, allocations: 204 kB / 364.1 MB, free: 12.39 MB / 302.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000225/0.4465, allocations: 119.2 kB / 364.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.4477, allocations: 0.6778 MB / 364.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.4477, allocations: 4 kB / 364.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005756/0.4483, allocations: 435.1 kB / 365.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009466/0.4493, allocations: 203.2 kB / 365.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002871/0.4521, allocations: 2.079 MB / 367.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006219/0.4528, allocations: 1.024 MB / 368.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004052/0.4532, allocations: 107.1 kB / 368.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.4533, allocations: 59.44 kB / 368.8 MB, free: 7.555 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4533, allocations: 0 / 368.8 MB, free: 7.555 MB / 302.1 MB Notification: Performance of Templates: time 0.01837/0.4717, allocations: 8.981 MB / 377.8 MB, free: 14.56 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) Environment - environmentSimulation: