Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 99.7 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.001571/0.001571, 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 1.717/1.717, allocations: 205.4 MB / 222.1 MB, free: 5.543 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.0004654/0.0004656, allocations: 8 kB / 278.9 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3712, allocations: 47.58 MB / 326.4 MB, free: 1.703 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.0136/0.3849, allocations: 9.284 MB / 335.7 MB, free: 10.35 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.3954, allocations: 3.137 MB / 338.9 MB, free: 7.207 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002908/0.3984, allocations: 35.94 kB / 338.9 MB, free: 7.172 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002439/0.4008, allocations: 0.509 MB / 339.4 MB, free: 6.66 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004171/0.405, allocations: 0.705 MB / 340.1 MB, free: 5.953 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001558/0.4066, allocations: 255.6 kB / 340.4 MB, free: 5.703 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005403/0.412, allocations: 1.553 MB / 341.9 MB, free: 4.145 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001303/0.4134, allocations: 0.6752 MB / 342.6 MB, free: 3.449 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001448/0.4148, allocations: 0.642 MB / 343.2 MB, free: 2.805 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001002/0.4158, allocations: 0.7155 MB / 344 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000168/0.416, allocations: 96 kB / 344 MB, free: 1.992 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004465/0.4165, allocations: 132 kB / 344.2 MB, free: 1.863 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002787/0.4168, allocations: 278.8 kB / 344.4 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000615/0.4174, allocations: 388.8 kB / 344.8 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002432/0.4198, allocations: 2.041 MB / 346.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.4199, allocations: 0 / 346.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.24e-06/0.4199, allocations: 0 / 346.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.546e-05/0.4199, allocations: 0 / 346.9 MB, free: 15.16 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003652/0.4236, allocations: 1.764 MB / 348.6 MB, free: 13.33 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.4237, allocations: 8.031 kB / 348.6 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007069/0.4244, allocations: 237.6 kB / 348.9 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001788/0.4262, allocations: 1.012 MB / 349.9 MB, free: 12.03 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.4263, allocations: 115.1 kB / 350 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002135/0.4265, allocations: 155.9 kB / 350.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002622/0.4291, allocations: 1.468 MB / 351.6 MB, free: 10.22 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.114e-05/0.4292, allocations: 11.92 kB / 351.6 MB, free: 10.21 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.4294, allocations: 64 kB / 351.7 MB, free: 10.15 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.951e-05/0.4294, allocations: 43.98 kB / 351.7 MB, free: 10.11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001984/0.4314, allocations: 0.963 MB / 352.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009654/0.4411, allocations: 6.531 MB / 359.2 MB, free: 2.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008578/0.442, allocations: 396.2 kB / 359.6 MB, free: 1.855 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.35e-05/0.442, allocations: 8.438 kB / 359.6 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006193/0.4427, allocations: 276.8 kB / 359.9 MB, free: 1.555 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 3.677e-06/0.4427, allocations: 0 / 359.9 MB, free: 1.555 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.003777/0.4465, allocations: 1.774 MB / 361.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.4466, allocations: 162.8 kB / 361.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/0.4483, allocations: 1.191 MB / 363 MB, free: 14.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.334e-05/0.4483, allocations: 37.7 kB / 363.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007762/0.4491, allocations: 0.8712 MB / 363.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.4493, allocations: 205.1 kB / 364.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.871e-05/0.4493, allocations: 24 kB / 364.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.4495, allocations: 353.9 kB / 364.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005106/0.45, allocations: 230.5 kB / 364.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/0.4511, allocations: 0.8034 MB / 365.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006919/0.4518, allocations: 399.6 kB / 365.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/0.4518, allocations: 8 kB / 365.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002309/0.4542, allocations: 1.173 MB / 367.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.485e-05/0.4542, allocations: 41.69 kB / 367.1 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.724e-05/0.4543, allocations: 20 kB / 367.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003222/0.4546, allocations: 65.7 kB / 367.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008429/0.4555, allocations: 271.5 kB / 367.5 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002154/0.4576, allocations: 2.599 MB / 370.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.4588, allocations: 68.14 kB / 370.1 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-05/0.4589, allocations: 64 kB / 370.2 MB, free: 6.477 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008882/0.4598, allocations: 357.3 kB / 370.6 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.46, allocations: 134.3 kB / 370.7 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001167/0.4612, allocations: 0.5645 MB / 371.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-06/0.4612, allocations: 4 kB / 371.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.4612, allocations: 7.938 kB / 371.3 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.4612, allocations: 0 / 371.3 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003204/0.4645, allocations: 1.829 MB / 373.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.4645, allocations: 0 / 373.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004806/0.465, allocations: 107.8 kB / 373.2 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.4652, allocations: 49.69 kB / 373.3 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.376e-05/0.4652, allocations: 16.34 kB / 373.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002233/0.4675, allocations: 2.56 MB / 375.8 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/0.4675, allocations: 7.938 kB / 375.8 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.4693, allocations: 1.125 MB / 377 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006881/0.47, allocations: 243.5 kB / 377.2 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004245/0.4705, allocations: 19.98 kB / 377.2 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007503/0.4712, allocations: 35.97 kB / 377.3 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.4714, allocations: 55.83 kB / 377.3 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.34e-05/0.4714, allocations: 20 kB / 377.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001384/0.4728, allocations: 0.7797 MB / 378.1 MB, free: 13.97 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4729, allocations: 0 / 378.1 MB, free: 13.97 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0015/0.4744, allocations: 300 kB / 378.4 MB, free: 13.68 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003392/0.4747, allocations: 131.1 kB / 378.5 MB, free: 13.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.4767, allocations: 0.9246 MB / 379.5 MB, free: 12.58 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.4767, allocations: 0 / 379.5 MB, free: 12.58 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007745/0.4775, allocations: 482.9 kB / 379.9 MB, free: 12.08 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00165/0.4791, allocations: 297 kB / 380.2 MB, free: 11.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006063/0.4852, allocations: 3.077 MB / 383.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/0.4865, allocations: 1.209 MB / 384.5 MB, free: 7.395 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009281/0.4874, allocations: 167.2 kB / 384.7 MB, free: 7.227 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002937/0.4877, allocations: 83.44 kB / 384.7 MB, free: 7.145 MB / 318.1 MB Notification: Performance of SimCode: time 3.467e-06/0.4877, allocations: 0 / 384.7 MB, free: 7.145 MB / 318.1 MB Notification: Performance of Templates: time 0.03292/0.5207, allocations: 12.93 MB / 397.7 MB, free: 10.2 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) Environment - environmentSimulation: