Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.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_Slip1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.36/1.36, allocations: 222.9 MB / 240.1 MB, free: 4.332 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.001537/0.001537, allocations: 188.5 kB / 290.4 MB, free: 2.062 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03368/0.03368, allocations: 8.806 MB / 349.3 MB, free: 4.539 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 80.16 kB / 464.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1086, allocations: 51.57 MB / 0.5041 GB, free: 9.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.2825/0.3911, allocations: 25.4 MB / 0.5289 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01541/0.4066, allocations: 8.012 MB / 0.5367 GB, free: 4.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006228/0.4129, allocations: 176.1 kB / 0.5369 GB, free: 4.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0145/0.4274, allocations: 6.096 MB / 0.5428 GB, free: 4.137 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01118/0.4386, allocations: 2.739 MB / 0.5455 GB, free: 3.379 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005136/0.4437, allocations: 1.624 MB / 0.5471 GB, free: 3.215 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01219/0.4559, allocations: 7.271 MB / 0.5542 GB, free: 1.082 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02365/0.4797, allocations: 13.34 MB / 0.5672 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00813/0.4878, allocations: 3.749 MB / 0.5709 GB, free: 9.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008322/0.4962, allocations: 4.222 MB / 0.575 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003978/0.5002, allocations: 1.07 MB / 0.5761 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005971/0.5062, allocations: 1.441 MB / 0.5775 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004043/0.5103, allocations: 2.141 MB / 0.5795 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00914/0.5195, allocations: 4.107 MB / 0.5836 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01907/0.5386, allocations: 14.45 MB / 0.5977 GB, free: 14.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.5386, allocations: 0 / 0.5977 GB, free: 14.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5386, allocations: 0 / 0.5977 GB, free: 14.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004298/0.5391, allocations: 4 kB / 0.5977 GB, free: 14.86 MB / 414.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.02958/0.5687, allocations: 8.773 MB / 0.6062 GB, free: 6.074 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.5687, allocations: 8.031 kB / 0.6063 GB, free: 6.066 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02585/0.5946, allocations: 4.4 MB / 0.6105 GB, free: 1.711 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009698/0.6043, allocations: 4.614 MB / 0.6151 GB, free: 13.06 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004358/0.6048, allocations: 491.9 kB / 0.6155 GB, free: 12.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002492/0.6073, allocations: 0.625 MB / 0.6161 GB, free: 11.97 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02457/0.6319, allocations: 10.35 MB / 0.6262 GB, free: 1.574 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002082/0.6322, allocations: 15.84 kB / 0.6263 GB, free: 1.559 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00127/0.6334, allocations: 261.9 kB / 0.6265 GB, free: 1.312 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000408/0.6339, allocations: 421.6 kB / 0.6269 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02018/0.654, allocations: 9.864 MB / 0.6365 GB, free: 7.016 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06292/0.717, allocations: 35.31 MB / 0.671 GB, free: 2.711 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02214/0.7392, allocations: 20.65 MB / 0.6912 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004171/0.7434, allocations: 2.311 MB / 0.6935 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004964/0.7439, allocations: 226.8 kB / 0.6937 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.613e-05/0.744, allocations: 64.89 kB / 0.6937 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 4.789e-06/0.7441, allocations: 0 / 0.6937 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02457/0.7686, allocations: 10.88 MB / 0.7044 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.972e-05/0.7688, allocations: 81.78 kB / 0.7044 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005854/0.7746, allocations: 3.017 MB / 0.7074 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005051/0.7752, allocations: 77.7 kB / 0.7075 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002169/0.7773, allocations: 2.86 MB / 0.7102 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001324/0.7787, allocations: 1.032 MB / 0.7113 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002318/0.781, allocations: 0.9094 MB / 0.7121 GB, free: 5.727 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.7811, allocations: 301.1 kB / 0.7124 GB, free: 5.43 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003468/0.7846, allocations: 2.024 MB / 0.7144 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004748/0.7894, allocations: 3.728 MB / 0.718 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008566/0.798, allocations: 6.043 MB / 0.7239 GB, free: 8.035 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-05/0.798, allocations: 16 kB / 0.724 GB, free: 8.02 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01284/0.8109, allocations: 6.625 MB / 0.7304 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.582e-05/0.811, allocations: 32 kB / 0.7305 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001095/0.8111, allocations: 55.94 kB / 0.7305 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001956/0.8131, allocations: 0.6791 MB / 0.7312 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2418/1.055, allocations: 1.061 MB / 0.7322 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008239/1.063, allocations: 6.222 MB / 0.7383 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003766/1.067, allocations: 281.3 kB / 0.7386 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007315/1.068, allocations: 226.9 kB / 0.7388 GB, free: 165 MB / 0.5294 GB 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.004405/1.072, allocations: 2.311 MB / 0.741 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000792/1.073, allocations: 327.1 kB / 0.7413 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008534/1.081, allocations: 4.631 MB / 0.7459 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.362e-05/1.082, allocations: 30.47 kB / 0.7459 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/1.082, allocations: 5.5 kB / 0.7459 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.806e-05/1.082, allocations: 17.09 kB / 0.7459 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0208/1.102, allocations: 11.09 MB / 0.7567 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/1.102, allocations: 4.156 kB / 0.7567 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002175/1.105, allocations: 0.5307 MB / 0.7573 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001578/1.106, allocations: 0.5709 MB / 0.7578 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002184/1.106, allocations: 64.97 kB / 0.7579 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006357/1.113, allocations: 5.46 MB / 0.7632 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/1.113, allocations: 11.16 kB / 0.7632 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008615/1.121, allocations: 6.588 MB / 0.7697 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/1.123, allocations: 0.7249 MB / 0.7704 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004945/1.124, allocations: 54.75 kB / 0.7704 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001613/1.125, allocations: 144.5 kB / 0.7706 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004254/1.126, allocations: 205.4 kB / 0.7708 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001913/1.126, allocations: 97.47 kB / 0.7708 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002724/1.129, allocations: 2.012 MB / 0.7728 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/1.129, allocations: 0 / 0.7728 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004101/1.133, allocations: 1.178 MB / 0.774 GB, free: 152.2 MB / 0.5294 GB 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.0005297/1.133, allocations: 221.5 kB / 0.7742 GB, free: 152 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007399/1.141, allocations: 5.045 MB / 0.7791 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.086e-06/1.141, allocations: 3.906 kB / 0.7791 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003322/1.144, allocations: 2.263 MB / 0.7813 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003245/1.147, allocations: 0.6542 MB / 0.782 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01658/1.164, allocations: 10.84 MB / 0.7925 GB, free: 140 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002889/1.167, allocations: 4.04 MB / 0.7965 GB, free: 136 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001349/1.168, allocations: 319.3 kB / 0.7968 GB, free: 135.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.242e-06/1.168, allocations: 0 / 0.7968 GB, free: 135.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.1108/1.279, allocations: 106.6 MB / 0.9009 GB, free: 29.12 MB / 0.5294 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1)