Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.SynchronousMachines.SMEE_Slip4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009209/0.0009209, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.199/1.199, allocations: 222.9 MB / 238.9 MB, free: 4.773 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 188.5 kB / 289.1 MB, free: 2.516 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0314/0.0314, allocations: 8.791 MB / 348.1 MB, free: 4.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 76.55 kB / 410.4 MB, free: 42.58 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07601/0.07726, allocations: 51.56 MB / 462 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02447/0.1018, allocations: 25.01 MB / 487 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01508/0.1169, allocations: 7.937 MB / 494.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005206/0.1221, allocations: 167.5 kB / 495.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01229/0.1344, allocations: 5.775 MB / 0.4891 GB, free: 7.977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007113/0.1416, allocations: 2.522 MB / 0.4916 GB, free: 5.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003822/0.1454, allocations: 1.509 MB / 0.493 GB, free: 3.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007686/0.1531, allocations: 7.37 MB / 0.5002 GB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01511/0.1682, allocations: 10.95 MB / 0.5109 GB, free: 1.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004518/0.1728, allocations: 3.24 MB / 0.5141 GB, free: 14.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005982/0.1788, allocations: 4.04 MB / 0.518 GB, free: 10.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002211/0.181, allocations: 0.6953 MB / 0.5187 GB, free: 9.473 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003925/0.185, allocations: 1.07 MB / 0.5198 GB, free: 8.402 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002765/0.1877, allocations: 1.76 MB / 0.5215 GB, free: 6.637 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006195/0.194, allocations: 3.73 MB / 0.5251 GB, free: 2.891 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1965/0.3904, allocations: 14.09 MB / 0.5389 GB, free: 27.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.3905, allocations: 1.75 kB / 0.5389 GB, free: 27.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3905, allocations: 1.781 kB / 0.5389 GB, free: 27.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004604/0.3909, allocations: 0 / 0.5389 GB, free: 27.11 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.02847/0.4194, allocations: 8.803 MB / 0.5475 GB, free: 23.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.4195, allocations: 9.875 kB / 0.5475 GB, free: 23.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02521/0.4447, allocations: 4.381 MB / 0.5518 GB, free: 21.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009889/0.4546, allocations: 4.508 MB / 0.5562 GB, free: 20.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004231/0.4551, allocations: 486 kB / 0.5566 GB, free: 20.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002973/0.4581, allocations: 0.6291 MB / 0.5572 GB, free: 20.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02313/0.4812, allocations: 10.35 MB / 0.5674 GB, free: 17.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001527/0.4814, allocations: 14.05 kB / 0.5674 GB, free: 17.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007231/0.4822, allocations: 261.3 kB / 0.5676 GB, free: 17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000319/0.4825, allocations: 419 kB / 0.568 GB, free: 16.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01806/0.5005, allocations: 9.862 MB / 0.5777 GB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05624/0.5568, allocations: 35.68 MB / 0.6125 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01763/0.5745, allocations: 20.66 MB / 0.6327 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003727/0.5783, allocations: 2.303 MB / 0.6349 GB, free: 12.35 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003679/0.5786, allocations: 226.9 kB / 0.6351 GB, free: 12.1 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.881e-05/0.5787, allocations: 64.36 kB / 0.6352 GB, free: 12.03 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.139e-06/0.5787, allocations: 0 / 0.6352 GB, free: 12.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02178/0.6005, allocations: 10.87 MB / 0.6458 GB, free: 1.055 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.6006, allocations: 81.78 kB / 0.6459 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005316/0.6059, allocations: 3.025 MB / 0.6488 GB, free: 13.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003237/0.6063, allocations: 77.7 kB / 0.6489 GB, free: 13.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001729/0.608, allocations: 2.865 MB / 0.6517 GB, free: 10.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008583/0.6089, allocations: 1.032 MB / 0.6527 GB, free: 9.926 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001243/0.6101, allocations: 0.9055 MB / 0.6536 GB, free: 9.008 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.473e-05/0.6102, allocations: 301.1 kB / 0.6539 GB, free: 8.711 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002736/0.613, allocations: 2.027 MB / 0.6559 GB, free: 6.676 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003652/0.6166, allocations: 3.726 MB / 0.6595 GB, free: 2.191 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007001/0.6236, allocations: 6.04 MB / 0.6654 GB, free: 11.58 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.65e-05/0.6237, allocations: 16 kB / 0.6654 GB, free: 11.56 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01041/0.6341, allocations: 6.638 MB / 0.6719 GB, free: 5.234 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.376e-05/0.6342, allocations: 28.22 kB / 0.6719 GB, free: 5.207 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.427e-05/0.6342, allocations: 60 kB / 0.672 GB, free: 5.148 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00167/0.6359, allocations: 0.664 MB / 0.6726 GB, free: 4.484 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003302/0.6392, allocations: 1.069 MB / 0.6737 GB, free: 3.488 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007247/0.6465, allocations: 5.788 MB / 0.6793 GB, free: 13.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003101/0.6496, allocations: 283.5 kB / 0.6796 GB, free: 13.33 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000366/0.65, allocations: 228 kB / 0.6798 GB, free: 13.11 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * 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 (560): * Single equations (assignments): 559 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003513/0.6535, allocations: 2.319 MB / 0.6821 GB, free: 10.85 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007139/0.6542, allocations: 328 kB / 0.6824 GB, free: 10.53 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0069/0.6611, allocations: 4.638 MB / 0.6869 GB, free: 5.859 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.336e-05/0.6612, allocations: 28 kB / 0.687 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.6612, allocations: 8 kB / 0.687 GB, free: 5.824 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-05/0.6612, allocations: 19.88 kB / 0.687 GB, free: 5.805 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01581/0.677, allocations: 11.25 MB / 0.698 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.6771, allocations: 8.031 kB / 0.698 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001915/0.679, allocations: 0.5339 MB / 0.6985 GB, free: 9.934 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001436/0.6805, allocations: 0.5606 MB / 0.699 GB, free: 9.371 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001617/0.6806, allocations: 71.98 kB / 0.6991 GB, free: 9.301 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006271/0.6869, allocations: 5.034 MB / 0.704 GB, free: 4.156 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.6869, allocations: 11.94 kB / 0.704 GB, free: 4.145 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1858/0.8727, allocations: 6.579 MB / 0.7105 GB, free: 175.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001558/0.8743, allocations: 0.7224 MB / 0.7112 GB, free: 175.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004254/0.8747, allocations: 64.55 kB / 0.7112 GB, free: 175.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/0.8762, allocations: 146.2 kB / 0.7114 GB, free: 175.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003912/0.8766, allocations: 206.6 kB / 0.7116 GB, free: 175.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001699/0.8767, allocations: 89.31 kB / 0.7117 GB, free: 175.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002758/0.8795, allocations: 2.023 MB / 0.7136 GB, free: 175.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8795, allocations: 0 / 0.7136 GB, free: 175.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003683/0.8832, allocations: 1.171 MB / 0.7148 GB, free: 175.1 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * 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 (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004137/0.8836, allocations: 231.5 kB / 0.715 GB, free: 174.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00702/0.8907, allocations: 5.019 MB / 0.7199 GB, free: 173.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.8907, allocations: 3.844 kB / 0.7199 GB, free: 173.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002785/0.8935, allocations: 2.26 MB / 0.7221 GB, free: 172.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002809/0.8963, allocations: 0.6084 MB / 0.7227 GB, free: 172 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01643/0.9127, allocations: 13.81 MB / 0.7362 GB, free: 164.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003077/0.9158, allocations: 4.149 MB / 0.7402 GB, free: 162.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003561/0.9194, allocations: 1.326 MB / 0.7415 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000764/0.9202, allocations: 272.2 kB / 0.7418 GB, free: 162.4 MB / 494.1 MB Notification: Performance of SimCode: time 8.22e-07/0.9202, allocations: 0 / 0.7418 GB, free: 162.4 MB / 494.1 MB Notification: Performance of Templates: time 0.06462/0.9848, allocations: 46.11 MB / 0.7868 GB, free: 119.8 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1)