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.001582/0.001582, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.313/1.313, allocations: 222.9 MB / 239 MB, free: 4.719 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.00141/0.00141, allocations: 204.4 kB / 289.3 MB, free: 2.453 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03257/0.03257, allocations: 8.787 MB / 348.2 MB, free: 4.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001437, allocations: 72.05 kB / 410.6 MB, free: 42.33 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1036, allocations: 51.57 MB / 462.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02245/0.126, allocations: 25 MB / 487.1 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.016/0.1421, allocations: 7.909 MB / 495 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00569/0.1479, allocations: 167.5 kB / 495.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01375/0.1617, allocations: 5.766 MB / 0.4892 GB, free: 7.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01046/0.1721, allocations: 2.499 MB / 0.4917 GB, free: 5.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005582/0.1777, allocations: 1.501 MB / 0.4931 GB, free: 3.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01125/0.189, allocations: 7.25 MB / 0.5002 GB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02203/0.2111, allocations: 15.28 MB / 0.5151 GB, free: 13.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006911/0.2181, allocations: 3.755 MB / 0.5188 GB, free: 9.305 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007434/0.2255, allocations: 4.283 MB / 0.523 GB, free: 5.008 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003661/0.2293, allocations: 1.074 MB / 0.524 GB, free: 3.934 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004821/0.2341, allocations: 1.445 MB / 0.5255 GB, free: 2.488 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00381/0.2379, allocations: 2.147 MB / 0.5276 GB, free: 344 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2408/0.4788, allocations: 4.11 MB / 0.5316 GB, free: 24.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01371/0.4925, allocations: 14.35 MB / 0.5456 GB, free: 22.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4926, allocations: 5.359 kB / 0.5456 GB, free: 22.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.806e-06/0.4926, allocations: 0 / 0.5456 GB, free: 22.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000399/0.493, allocations: 7.688 kB / 0.5456 GB, free: 22.98 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.0317/0.5247, allocations: 8.803 MB / 0.5542 GB, free: 19.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.5248, allocations: 8.656 kB / 0.5542 GB, free: 19.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02569/0.5505, allocations: 4.381 MB / 0.5585 GB, free: 17.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01093/0.5615, allocations: 4.499 MB / 0.5629 GB, free: 16.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005124/0.562, allocations: 492.6 kB / 0.5633 GB, free: 16.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003241/0.5653, allocations: 0.6376 MB / 0.564 GB, free: 16.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02768/0.5929, allocations: 10.35 MB / 0.5741 GB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002084/0.5932, allocations: 15.25 kB / 0.5741 GB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001651/0.5949, allocations: 266.5 kB / 0.5743 GB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003328/0.5952, allocations: 416.6 kB / 0.5747 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02098/0.6162, allocations: 9.863 MB / 0.5844 GB, free: 2.789 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06466/0.6809, allocations: 35.67 MB / 0.6192 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01878/0.6997, allocations: 20.67 MB / 0.6394 GB, free: 7.262 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004221/0.704, allocations: 2.308 MB / 0.6416 GB, free: 4.953 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004218/0.7044, allocations: 223.4 kB / 0.6418 GB, free: 4.707 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.926e-05/0.7045, allocations: 64.89 kB / 0.6419 GB, free: 4.633 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.699e-06/0.7045, allocations: 0 / 0.6419 GB, free: 4.633 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02292/0.7275, allocations: 10.86 MB / 0.6525 GB, free: 9.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/0.7276, allocations: 81.78 kB / 0.6526 GB, free: 9.566 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005009/0.7326, allocations: 3.025 MB / 0.6556 GB, free: 6.523 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005705/0.7332, allocations: 73.7 kB / 0.6556 GB, free: 6.445 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001927/0.7351, allocations: 2.865 MB / 0.6584 GB, free: 3.562 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001191/0.7363, allocations: 1.033 MB / 0.6594 GB, free: 2.539 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001357/0.7377, allocations: 0.9055 MB / 0.6603 GB, free: 1.621 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.7378, allocations: 309.1 kB / 0.6606 GB, free: 1.316 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003196/0.741, allocations: 2.023 MB / 0.6626 GB, free: 15.29 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004444/0.7455, allocations: 3.733 MB / 0.6662 GB, free: 10.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008292/0.7538, allocations: 6.046 MB / 0.6721 GB, free: 4.176 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.75e-05/0.7539, allocations: 16 kB / 0.6721 GB, free: 4.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01242/0.7663, allocations: 6.622 MB / 0.6786 GB, free: 13.84 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.407e-05/0.7664, allocations: 28 kB / 0.6786 GB, free: 13.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001143/0.7666, allocations: 60.22 kB / 0.6787 GB, free: 13.76 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001891/0.7685, allocations: 0.6679 MB / 0.6794 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004595/0.7731, allocations: 1.072 MB / 0.6804 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009687/0.7828, allocations: 6.237 MB / 0.6865 GB, free: 5.758 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004823/0.7877, allocations: 279.5 kB / 0.6868 GB, free: 5.484 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001264/0.789, allocations: 231.9 kB / 0.687 GB, free: 5.258 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.006262/0.7953, allocations: 2.309 MB / 0.6892 GB, free: 3.012 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001316/0.7966, allocations: 320 kB / 0.6895 GB, free: 2.695 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00988/0.8065, allocations: 4.639 MB / 0.6941 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.793e-05/0.8066, allocations: 35.94 kB / 0.6941 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.768e-05/0.8066, allocations: 4 kB / 0.6941 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.249e-05/0.8066, allocations: 19.94 kB / 0.6941 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02209/0.8287, allocations: 11.26 MB / 0.7051 GB, free: 2.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.629e-05/0.8288, allocations: 4 kB / 0.7051 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002063/0.8309, allocations: 0.5284 MB / 0.7056 GB, free: 2.086 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/0.8326, allocations: 0.573 MB / 0.7062 GB, free: 1.512 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001854/0.8328, allocations: 67.97 kB / 0.7063 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2202/1.053, allocations: 5.454 MB / 0.7116 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/1.053, allocations: 7 kB / 0.7116 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009999/1.063, allocations: 6.576 MB / 0.718 GB, free: 172.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001767/1.065, allocations: 0.7208 MB / 0.7187 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005293/1.065, allocations: 56.12 kB / 0.7188 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/1.067, allocations: 152 kB / 0.7189 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004591/1.067, allocations: 213 kB / 0.7191 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000188/1.068, allocations: 88.94 kB / 0.7192 GB, free: 172.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002865/1.07, allocations: 2.018 MB / 0.7212 GB, free: 171.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.07, allocations: 0 / 0.7212 GB, free: 171.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004112/1.075, allocations: 1.175 MB / 0.7223 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.0005504/1.075, allocations: 222.5 kB / 0.7225 GB, free: 171.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01638/1.092, allocations: 8.293 MB / 0.7306 GB, free: 169.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/1.092, allocations: 3.812 kB / 0.7306 GB, free: 169.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003262/1.095, allocations: 2.266 MB / 0.7329 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.003348/1.098, allocations: 0.6479 MB / 0.7335 GB, free: 168.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01724/1.116, allocations: 13.81 MB / 0.747 GB, free: 156.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003168/1.119, allocations: 4.147 MB / 0.751 GB, free: 153.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003785/1.123, allocations: 1.328 MB / 0.7523 GB, free: 152.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007993/1.123, allocations: 273.1 kB / 0.7526 GB, free: 152.5 MB / 494.1 MB Notification: Performance of SimCode: time 7.41e-07/1.123, allocations: 3.938 kB / 0.7526 GB, free: 152.5 MB / 494.1 MB Notification: Performance of Templates: time 0.07248/1.196, allocations: 47.85 MB / 0.7993 GB, free: 106.8 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)