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.00109/0.00109, allocations: 103.4 kB / 16.27 MB, free: 5.984 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.52/1.52, allocations: 222.9 MB / 239.9 MB, free: 4.652 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.00155/0.00155, allocations: 207.5 kB / 290.2 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0348/0.0348, allocations: 8.788 MB / 349.2 MB, free: 4.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 78.61 kB / 411.8 MB, free: 42.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1077, allocations: 51.57 MB / 463.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02531/0.1331, allocations: 25.42 MB / 488.7 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01723/0.1504, allocations: 8.014 MB / 496.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006504/0.1569, allocations: 179.5 kB / 496.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01416/0.1711, allocations: 6.106 MB / 0.4912 GB, free: 6.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009321/0.1805, allocations: 2.742 MB / 0.4939 GB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004987/0.1855, allocations: 1.616 MB / 0.4955 GB, free: 2.195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01099/0.1965, allocations: 7.223 MB / 0.5026 GB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01981/0.2163, allocations: 13.35 MB / 0.5156 GB, free: 13.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006336/0.2227, allocations: 3.721 MB / 0.5192 GB, free: 9.727 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007684/0.2304, allocations: 4.247 MB / 0.5234 GB, free: 5.465 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002957/0.2334, allocations: 1.07 MB / 0.5244 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004563/0.238, allocations: 1.441 MB / 0.5258 GB, free: 2.953 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002867/0.2409, allocations: 2.147 MB / 0.5279 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2277/0.4687, allocations: 4.108 MB / 0.5319 GB, free: 23.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01848/0.4872, allocations: 14.36 MB / 0.546 GB, free: 22.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.155e-05/0.4873, allocations: 1.375 kB / 0.546 GB, free: 22.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4873, allocations: 0 / 0.546 GB, free: 22.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005486/0.4878, allocations: 0.875 kB / 0.546 GB, free: 22.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.03634/0.5242, allocations: 8.811 MB / 0.5546 GB, free: 18.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.491e-05/0.5243, allocations: 9.531 kB / 0.5546 GB, free: 18.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.027/0.5513, allocations: 4.378 MB / 0.5589 GB, free: 16.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01277/0.5641, allocations: 4.507 MB / 0.5633 GB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005126/0.5646, allocations: 495 kB / 0.5637 GB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003339/0.568, allocations: 0.6324 MB / 0.5643 GB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02973/0.5977, allocations: 10.35 MB / 0.5745 GB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002809/0.598, allocations: 15.8 kB / 0.5745 GB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002922/0.601, allocations: 263.4 kB / 0.5747 GB, free: 9.531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003756/0.6014, allocations: 412.8 kB / 0.5751 GB, free: 9.449 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02156/0.6229, allocations: 9.858 MB / 0.5847 GB, free: 2.059 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07187/0.6948, allocations: 35.68 MB / 0.6196 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02029/0.7152, allocations: 20.66 MB / 0.6398 GB, free: 6.535 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004543/0.7198, allocations: 2.3 MB / 0.642 GB, free: 4.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004786/0.7203, allocations: 226.8 kB / 0.6422 GB, free: 3.98 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.789e-05/0.7204, allocations: 68.27 kB / 0.6423 GB, free: 3.906 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 6.392e-06/0.7204, allocations: 0 / 0.6423 GB, free: 3.906 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02684/0.7472, allocations: 10.86 MB / 0.6529 GB, free: 8.934 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.7473, allocations: 81.78 kB / 0.653 GB, free: 8.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006533/0.7539, allocations: 3.029 MB / 0.6559 GB, free: 5.793 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006005/0.7545, allocations: 73.7 kB / 0.656 GB, free: 5.715 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002317/0.7568, allocations: 2.864 MB / 0.6588 GB, free: 2.832 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00149/0.7584, allocations: 1.036 MB / 0.6598 GB, free: 1.805 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00266/0.761, allocations: 0.9016 MB / 0.6607 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.7612, allocations: 305.1 kB / 0.661 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003651/0.7648, allocations: 2.024 MB / 0.663 GB, free: 14.56 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004744/0.7696, allocations: 3.729 MB / 0.6666 GB, free: 10.07 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008861/0.7785, allocations: 6.051 MB / 0.6725 GB, free: 3.449 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.253e-05/0.7785, allocations: 16 kB / 0.6725 GB, free: 3.434 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01428/0.7928, allocations: 6.634 MB / 0.679 GB, free: 13.11 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.326e-05/0.793, allocations: 28.22 kB / 0.679 GB, free: 13.08 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001263/0.7931, allocations: 60 kB / 0.6791 GB, free: 13.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002012/0.7951, allocations: 0.6679 MB / 0.6797 GB, free: 12.35 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004405/0.7996, allocations: 1.067 MB / 0.6808 GB, free: 11.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009464/0.8091, allocations: 6.239 MB / 0.6869 GB, free: 5.02 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004507/0.8136, allocations: 279.5 kB / 0.6871 GB, free: 4.746 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001117/0.8147, allocations: 232 kB / 0.6874 GB, free: 4.52 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.005847/0.8206, allocations: 2.304 MB / 0.6896 GB, free: 2.277 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001228/0.8218, allocations: 324 kB / 0.6899 GB, free: 1.957 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009778/0.8316, allocations: 4.63 MB / 0.6944 GB, free: 13.29 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.214e-05/0.8317, allocations: 35.94 kB / 0.6945 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-05/0.8318, allocations: 7.656 kB / 0.6945 GB, free: 13.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.346e-05/0.8318, allocations: 23.94 kB / 0.6945 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02642/0.8582, allocations: 11.26 MB / 0.7055 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.944e-05/0.8583, allocations: 4 kB / 0.7055 GB, free: 1.852 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002407/0.8607, allocations: 0.5281 MB / 0.706 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001782/0.8625, allocations: 0.5724 MB / 0.7066 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005371/0.8631, allocations: 67.73 kB / 0.7066 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2516/1.115, allocations: 5.454 MB / 0.712 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/1.115, allocations: 8.469 kB / 0.712 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/1.127, allocations: 6.578 MB / 0.7184 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002409/1.13, allocations: 0.7183 MB / 0.7191 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001003/1.131, allocations: 66.62 kB / 0.7192 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002125/1.133, allocations: 149.9 kB / 0.7193 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005785/1.133, allocations: 206.1 kB / 0.7195 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002113/1.134, allocations: 92.03 kB / 0.7196 GB, free: 172.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003668/1.137, allocations: 2.014 MB / 0.7216 GB, free: 171.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.21e-07/1.137, allocations: 3.906 kB / 0.7216 GB, free: 171.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006318/1.144, allocations: 1.174 MB / 0.7227 GB, free: 171.4 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.001002/1.145, allocations: 221.9 kB / 0.7229 GB, free: 171.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01725/1.162, allocations: 8.291 MB / 0.731 GB, free: 169.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/1.162, allocations: 0 / 0.731 GB, free: 169.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00405/1.166, allocations: 2.267 MB / 0.7332 GB, free: 168.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004881/1.171, allocations: 0.6535 MB / 0.7339 GB, free: 168.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0224/1.193, allocations: 10.98 MB / 0.7446 GB, free: 159 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004279/1.198, allocations: 4.04 MB / 0.7485 GB, free: 155.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001369/1.199, allocations: 313.8 kB / 0.7488 GB, free: 155.5 MB / 494.1 MB Notification: Performance of SimCode: time 8.61e-07/1.199, allocations: 4 kB / 0.7488 GB, free: 155.5 MB / 494.1 MB Notification: Performance of Templates: time 0.1173/1.316, allocations: 106 MB / 0.8523 GB, free: 52.13 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)