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.001382/0.001382, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001484/0.001485, allocations: 195 kB / 16.53 MB, free: 6.664 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.797/1.797, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.001396/0.001396, allocations: 47.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3277, allocations: 46.64 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01235/0.3401, allocations: 8.04 MB / 333.4 MB, free: 11.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007318/0.3474, allocations: 2.67 MB / 336 MB, free: 9.176 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002007/0.3495, allocations: 23.94 kB / 336 MB, free: 9.152 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002189/0.3518, allocations: 0.5557 MB / 336.6 MB, free: 8.594 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002532/0.3543, allocations: 468.3 kB / 337.1 MB, free: 8.133 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007148/0.355, allocations: 247.7 kB / 337.3 MB, free: 7.891 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002302/0.3574, allocations: 1.452 MB / 338.8 MB, free: 6.434 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001096/0.3585, allocations: 0.5885 MB / 339.3 MB, free: 5.824 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009413/0.3594, allocations: 0.5486 MB / 339.9 MB, free: 5.273 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007377/0.3602, allocations: 0.5989 MB / 340.5 MB, free: 4.672 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001879/0.3604, allocations: 136 kB / 340.6 MB, free: 4.539 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004145/0.3608, allocations: 184 kB / 340.8 MB, free: 4.359 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000252/0.3611, allocations: 278.9 kB / 341.1 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007322/0.3618, allocations: 0.661 MB / 341.7 MB, free: 3.422 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0022/0.364, allocations: 1.701 MB / 343.4 MB, free: 1.715 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.458e-06/0.364, allocations: 0 / 343.4 MB, free: 1.715 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.364, allocations: 0 / 343.4 MB, free: 1.715 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.223e-05/0.3641, allocations: 0 / 343.4 MB, free: 1.715 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.002673/0.3668, allocations: 1.445 MB / 344.9 MB, free: 220 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.3668, allocations: 12.03 kB / 344.9 MB, free: 208 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006937/0.3675, allocations: 183.3 kB / 345.1 MB, free: 24 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/0.3689, allocations: 0.7378 MB / 345.8 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.882e-05/0.369, allocations: 74 kB / 345.9 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.3691, allocations: 99.91 kB / 346 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.3709, allocations: 0.9268 MB / 346.9 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.757e-05/0.371, allocations: 11.92 kB / 346.9 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.764e-05/0.3711, allocations: 51.88 kB / 347 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.3711, allocations: 24 kB / 347 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/0.3724, allocations: 0.6286 MB / 347.6 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005712/0.3781, allocations: 3.93 MB / 351.6 MB, free: 9.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007592/0.3789, allocations: 436.6 kB / 352 MB, free: 8.797 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006094/0.3795, allocations: 261.4 kB / 352.2 MB, free: 8.539 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.238e-05/0.3796, allocations: 8.312 kB / 352.2 MB, free: 8.531 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.359e-05/0.3796, allocations: 34.89 kB / 352.3 MB, free: 8.488 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 3.747e-06/0.3796, allocations: 0 / 352.3 MB, free: 8.488 MB / 286.1 MB Notification: Performance of matching and sorting (n=44): time 0.003293/0.3829, allocations: 1.399 MB / 353.7 MB, free: 7.012 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.383, allocations: 81.11 kB / 353.8 MB, free: 6.914 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.3842, allocations: 0.8292 MB / 354.6 MB, free: 6.078 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.3842, allocations: 33.7 kB / 354.6 MB, free: 6.039 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000462/0.3847, allocations: 0.5564 MB / 355.2 MB, free: 5.473 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.3849, allocations: 157.8 kB / 355.3 MB, free: 5.316 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/0.3851, allocations: 122.6 kB / 355.4 MB, free: 5.188 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.3852, allocations: 334 kB / 355.8 MB, free: 4.855 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.3856, allocations: 161.9 kB / 355.9 MB, free: 4.699 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006086/0.3862, allocations: 464 kB / 356.4 MB, free: 4.109 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.3873, allocations: 0.6622 MB / 357 MB, free: 3.312 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3873, allocations: 3.938 kB / 357.1 MB, free: 3.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001456/0.3888, allocations: 0.7707 MB / 357.8 MB, free: 2.527 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.3888, allocations: 8 kB / 357.8 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.3889, allocations: 16.03 kB / 357.8 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002867/0.3892, allocations: 81.56 kB / 357.9 MB, free: 2.418 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004765/0.3896, allocations: 159.7 kB / 358.1 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002727/0.3924, allocations: 3.15 MB / 361.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006247/0.393, allocations: 31.98 kB / 361.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.24e-05/0.3931, allocations: 36.06 kB / 361.3 MB, free: 14.77 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.0004993/0.3936, allocations: 265.5 kB / 361.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.3937, allocations: 82.97 kB / 361.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009249/0.3946, allocations: 495.4 kB / 362.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.3947, allocations: 7.984 kB / 362.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3947, allocations: 7.938 kB / 362.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3947, allocations: 0 / 362.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.3969, allocations: 1.442 MB / 363.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3969, allocations: 4 kB / 363.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003006/0.3972, allocations: 63.91 kB / 363.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002223/0.3974, allocations: 81.73 kB / 363.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.449e-05/0.3975, allocations: 8 kB / 363.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002849/0.4003, allocations: 3.126 MB / 366.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4003, allocations: 3.938 kB / 366.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.4017, allocations: 0.7651 MB / 367.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000344/0.402, allocations: 192.1 kB / 367.8 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.788e-05/0.4022, allocations: 20.06 kB / 367.8 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004253/0.4026, allocations: 27.98 kB / 367.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.657e-05/0.4027, allocations: 35.94 kB / 367.9 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/0.4027, allocations: 16 kB / 367.9 MB, free: 7.691 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009153/0.4036, allocations: 0.5576 MB / 368.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4037, allocations: 0 / 368.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009586/0.4046, allocations: 208 kB / 368.7 MB, free: 6.938 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 (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.0002399/0.4049, allocations: 123.1 kB / 368.8 MB, free: 6.805 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.4062, allocations: 0.6986 MB / 369.5 MB, free: 6.082 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4062, allocations: 0 / 369.5 MB, free: 6.082 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006189/0.4068, allocations: 441.8 kB / 369.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/0.408, allocations: 235.1 kB / 370.2 MB, free: 5.395 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003938/0.412, allocations: 1.723 MB / 371.9 MB, free: 3.621 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007403/0.4128, allocations: 1.005 MB / 372.9 MB, free: 2.586 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004501/0.4132, allocations: 99.27 kB / 373 MB, free: 2.484 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.4134, allocations: 59.42 kB / 373 MB, free: 2.43 MB / 302.1 MB Notification: Performance of SimCode: time 1.423e-06/0.4134, allocations: 4 kB / 373 MB, free: 2.426 MB / 302.1 MB Notification: Performance of Templates: time 0.02515/0.4385, allocations: 10.52 MB / 383.6 MB, free: 7.891 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (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)