Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 239.2 MB, free: 4.602 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.001373/0.001373, allocations: 199.6 kB / 289.5 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03433/0.03433, allocations: 8.798 MB / 348.5 MB, free: 4.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001517, allocations: 78.03 kB / 411.1 MB, free: 42.2 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09176/0.09329, allocations: 51.57 MB / 462.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02466/0.118, allocations: 25.43 MB / 488.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01607/0.1341, allocations: 8.006 MB / 496.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004544/0.1387, allocations: 171.5 kB / 496.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01454/0.1532, allocations: 6.114 MB / 0.4906 GB, free: 6.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01004/0.1633, allocations: 2.738 MB / 0.4933 GB, free: 3.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004958/0.1683, allocations: 1.626 MB / 0.4948 GB, free: 2.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009395/0.1777, allocations: 7.219 MB / 0.5019 GB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0194/0.1971, allocations: 13.36 MB / 0.5149 GB, free: 13.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006154/0.2033, allocations: 3.717 MB / 0.5186 GB, free: 9.816 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007904/0.2113, allocations: 4.247 MB / 0.5227 GB, free: 5.555 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003577/0.2149, allocations: 1.07 MB / 0.5238 GB, free: 4.484 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005239/0.2202, allocations: 1.449 MB / 0.5252 GB, free: 3.035 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004189/0.2244, allocations: 2.147 MB / 0.5273 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2167/0.4412, allocations: 4.107 MB / 0.5313 GB, free: 22.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01574/0.4569, allocations: 14.36 MB / 0.5453 GB, free: 22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.032e-05/0.457, allocations: 2.75 kB / 0.5453 GB, free: 22 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.457, allocations: 1.719 kB / 0.5453 GB, free: 22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005528/0.4576, allocations: 0 / 0.5453 GB, free: 22 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.03462/0.4922, allocations: 8.808 MB / 0.5539 GB, free: 18.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.4923, allocations: 11.69 kB / 0.5539 GB, free: 18.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02629/0.5186, allocations: 4.379 MB / 0.5582 GB, free: 16.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01245/0.5311, allocations: 4.505 MB / 0.5626 GB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006182/0.5317, allocations: 494.2 kB / 0.5631 GB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003802/0.5355, allocations: 0.6291 MB / 0.5637 GB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02694/0.5625, allocations: 10.35 MB / 0.5738 GB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003018/0.5628, allocations: 7.844 kB / 0.5738 GB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002486/0.5653, allocations: 267.9 kB / 0.5741 GB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004062/0.5657, allocations: 421.2 kB / 0.5745 GB, free: 9.422 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02094/0.5867, allocations: 9.856 MB / 0.5841 GB, free: 2.066 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07094/0.6577, allocations: 35.68 MB / 0.6189 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02035/0.6781, allocations: 20.66 MB / 0.6391 GB, free: 6.543 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004357/0.6825, allocations: 2.3 MB / 0.6413 GB, free: 4.234 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005845/0.6831, allocations: 228.9 kB / 0.6416 GB, free: 3.984 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.019e-05/0.6832, allocations: 60.89 kB / 0.6416 GB, free: 3.914 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.46e-06/0.6832, allocations: 0 / 0.6416 GB, free: 3.914 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02854/0.7118, allocations: 10.87 MB / 0.6522 GB, free: 8.938 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.7119, allocations: 89.7 kB / 0.6523 GB, free: 8.836 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006152/0.7181, allocations: 3.021 MB / 0.6553 GB, free: 5.797 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005452/0.7186, allocations: 77.7 kB / 0.6553 GB, free: 5.715 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002095/0.7207, allocations: 2.864 MB / 0.6581 GB, free: 2.832 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001377/0.7221, allocations: 1.034 MB / 0.6591 GB, free: 1.809 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002333/0.7245, allocations: 0.9055 MB / 0.66 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.254e-05/0.7246, allocations: 301.1 kB / 0.6603 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003502/0.7281, allocations: 2.031 MB / 0.6623 GB, free: 14.56 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004674/0.7328, allocations: 3.722 MB / 0.6659 GB, free: 10.07 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008235/0.741, allocations: 6.043 MB / 0.6718 GB, free: 3.461 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.809e-05/0.7411, allocations: 19.98 kB / 0.6719 GB, free: 3.441 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01279/0.7539, allocations: 6.626 MB / 0.6783 GB, free: 13.12 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.103e-05/0.754, allocations: 28.22 kB / 0.6784 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000103/0.7541, allocations: 60 kB / 0.6784 GB, free: 13.04 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001937/0.7561, allocations: 0.6736 MB / 0.6791 GB, free: 12.36 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003903/0.76, allocations: 1.065 MB / 0.6801 GB, free: 11.37 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009016/0.769, allocations: 6.244 MB / 0.6862 GB, free: 5.027 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004706/0.7738, allocations: 275.5 kB / 0.6865 GB, free: 4.758 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001314/0.7751, allocations: 236 kB / 0.6867 GB, free: 4.527 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.006149/0.7813, allocations: 2.303 MB / 0.6889 GB, free: 2.285 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001277/0.7826, allocations: 328 kB / 0.6893 GB, free: 1.961 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/0.7927, allocations: 4.632 MB / 0.6938 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.074e-05/0.7928, allocations: 35.94 kB / 0.6938 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.236e-05/0.7929, allocations: 12 kB / 0.6938 GB, free: 13.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.033e-05/0.7929, allocations: 15.94 kB / 0.6938 GB, free: 13.24 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02465/0.8175, allocations: 11.26 MB / 0.7048 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.842e-05/0.8176, allocations: 4 kB / 0.7048 GB, free: 1.859 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00224/0.8199, allocations: 0.5286 MB / 0.7054 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001694/0.8216, allocations: 0.5685 MB / 0.7059 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003815/0.822, allocations: 67.98 kB / 0.706 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2228/1.045, allocations: 5.455 MB / 0.7113 GB, free: 173.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/1.045, allocations: 7.812 kB / 0.7113 GB, free: 173.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009973/1.055, allocations: 6.575 MB / 0.7177 GB, free: 172.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001697/1.057, allocations: 0.7217 MB / 0.7184 GB, free: 172.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005361/1.057, allocations: 64.41 kB / 0.7185 GB, free: 172.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001601/1.059, allocations: 145.6 kB / 0.7186 GB, free: 172.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005158/1.059, allocations: 210 kB / 0.7188 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002075/1.059, allocations: 90.62 kB / 0.7189 GB, free: 172.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002771/1.062, allocations: 2.017 MB / 0.7209 GB, free: 171.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/1.062, allocations: 3.844 kB / 0.7209 GB, free: 171.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003954/1.066, allocations: 1.174 MB / 0.722 GB, free: 171.6 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.0004385/1.067, allocations: 227.2 kB / 0.7223 GB, free: 171.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01748/1.084, allocations: 8.29 MB / 0.7304 GB, free: 169.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/1.084, allocations: 3.625 kB / 0.7304 GB, free: 169.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003165/1.087, allocations: 2.266 MB / 0.7326 GB, free: 168.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003305/1.091, allocations: 0.648 MB / 0.7332 GB, free: 168.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01517/1.106, allocations: 11.11 MB / 0.7441 GB, free: 158.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003024/1.109, allocations: 4.15 MB / 0.7481 GB, free: 155.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003532/1.112, allocations: 1.321 MB / 0.7494 GB, free: 154.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007201/1.113, allocations: 278.9 kB / 0.7497 GB, free: 154.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/1.113, allocations: 0 / 0.7497 GB, free: 154.5 MB / 494.1 MB Notification: Performance of Templates: time 0.06811/1.181, allocations: 47.81 MB / 0.7964 GB, free: 108.9 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)