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.007937/0.007936, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.373/1.373, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001444/0.001444, allocations: 192.4 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03469/0.03469, allocations: 8.794 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002574/0.002574, allocations: 83.88 kB / 463.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1093, allocations: 51.57 MB / 0.5034 GB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.2277/0.337, allocations: 25.39 MB / 0.5282 GB, free: 4.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01267/0.3497, allocations: 8.018 MB / 0.536 GB, free: 4.871 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00407/0.3538, allocations: 171.2 kB / 0.5362 GB, free: 4.871 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0123/0.3662, allocations: 6.106 MB / 0.5422 GB, free: 4.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007558/0.3738, allocations: 2.739 MB / 0.5448 GB, free: 3.488 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004029/0.3778, allocations: 1.61 MB / 0.5464 GB, free: 3.336 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009934/0.3877, allocations: 7.288 MB / 0.5535 GB, free: 1.148 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02221/0.41, allocations: 13.37 MB / 0.5666 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006097/0.4161, allocations: 3.755 MB / 0.5703 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006818/0.423, allocations: 4.216 MB / 0.5744 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002759/0.4257, allocations: 1.074 MB / 0.5754 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004553/0.4303, allocations: 1.43 MB / 0.5768 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003448/0.4338, allocations: 2.147 MB / 0.5789 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008317/0.4421, allocations: 4.115 MB / 0.5829 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01743/0.4596, allocations: 14.44 MB / 0.597 GB, free: 15.08 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.4596, allocations: 0 / 0.597 GB, free: 15.08 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.4596, allocations: 0 / 0.597 GB, free: 15.08 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000347/0.46, allocations: 0 / 0.597 GB, free: 15.08 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.02688/0.4869, allocations: 8.783 MB / 0.6056 GB, free: 6.285 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.4869, allocations: 8.031 kB / 0.6056 GB, free: 6.277 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02486/0.5118, allocations: 4.398 MB / 0.6099 GB, free: 1.922 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/0.5226, allocations: 4.613 MB / 0.6144 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005928/0.5233, allocations: 489.8 kB / 0.6149 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00267/0.5259, allocations: 0.6312 MB / 0.6155 GB, free: 12.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02566/0.5516, allocations: 10.35 MB / 0.6256 GB, free: 1.789 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002739/0.5519, allocations: 15.89 kB / 0.6256 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001824/0.5538, allocations: 263.9 kB / 0.6259 GB, free: 1.523 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004598/0.5542, allocations: 413.7 kB / 0.6263 GB, free: 1.117 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02018/0.5744, allocations: 9.869 MB / 0.6359 GB, free: 7.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0607/0.6352, allocations: 35.3 MB / 0.6704 GB, free: 2.938 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.019/0.6542, allocations: 20.67 MB / 0.6906 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00394/0.6582, allocations: 2.307 MB / 0.6928 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004438/0.6586, allocations: 227 kB / 0.693 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.129e-05/0.6587, allocations: 64.83 kB / 0.6931 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 5.591e-06/0.6587, allocations: 0 / 0.6931 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02265/0.6814, allocations: 10.87 MB / 0.7037 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.6815, allocations: 89.78 kB / 0.7038 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005363/0.6869, allocations: 3.017 MB / 0.7067 GB, free: 10.85 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002264/0.6871, allocations: 69.7 kB / 0.7068 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002173/0.6893, allocations: 2.867 MB / 0.7096 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009609/0.6903, allocations: 1.037 MB / 0.7106 GB, free: 6.859 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001754/0.692, allocations: 0.9055 MB / 0.7115 GB, free: 5.941 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.6921, allocations: 301.1 kB / 0.7118 GB, free: 5.645 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003252/0.6954, allocations: 2.027 MB / 0.7138 GB, free: 3.609 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004276/0.6997, allocations: 3.72 MB / 0.7174 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007696/0.7074, allocations: 6.043 MB / 0.7233 GB, free: 8.254 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.185e-05/0.7075, allocations: 16 kB / 0.7233 GB, free: 8.238 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01184/0.7193, allocations: 6.633 MB / 0.7298 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.38e-05/0.7194, allocations: 28 kB / 0.7298 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.433e-05/0.7195, allocations: 56.27 kB / 0.7299 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001979/0.7215, allocations: 0.6756 MB / 0.7305 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2694/0.9909, allocations: 1.061 MB / 0.7316 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008663/0.9996, allocations: 6.224 MB / 0.7377 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004076/1.004, allocations: 280.9 kB / 0.7379 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008209/1.005, allocations: 227.6 kB / 0.7381 GB, free: 164.8 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.005374/1.01, allocations: 2.313 MB / 0.7404 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/1.011, allocations: 328.5 kB / 0.7407 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008154/1.019, allocations: 4.623 MB / 0.7452 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-05/1.019, allocations: 31.22 kB / 0.7453 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-05/1.019, allocations: 7.469 kB / 0.7453 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.321e-05/1.019, allocations: 16.78 kB / 0.7453 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02263/1.042, allocations: 11.09 MB / 0.7561 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.761e-05/1.042, allocations: 5.5 kB / 0.7561 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002263/1.044, allocations: 0.5251 MB / 0.7566 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001737/1.046, allocations: 0.5697 MB / 0.7572 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003496/1.046, allocations: 69.81 kB / 0.7573 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007569/1.054, allocations: 5.458 MB / 0.7626 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/1.054, allocations: 7.906 kB / 0.7626 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0123/1.066, allocations: 6.584 MB / 0.769 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002002/1.068, allocations: 0.7233 MB / 0.7697 GB, free: 153 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009999/1.069, allocations: 59.84 kB / 0.7698 GB, free: 153 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002082/1.072, allocations: 146.1 kB / 0.7699 GB, free: 153 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004939/1.072, allocations: 207.2 kB / 0.7701 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/1.072, allocations: 90.31 kB / 0.7702 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003183/1.075, allocations: 2.02 MB / 0.7722 GB, free: 152.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/1.075, allocations: 2.734 kB / 0.7722 GB, free: 152.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004253/1.08, allocations: 1.167 MB / 0.7733 GB, free: 152 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.0003794/1.08, allocations: 227.5 kB / 0.7735 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006534/1.087, allocations: 5.043 MB / 0.7785 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/1.087, allocations: 7.75 kB / 0.7785 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002881/1.09, allocations: 2.264 MB / 0.7807 GB, free: 149 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00275/1.092, allocations: 0.6396 MB / 0.7813 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01501/1.107, allocations: 10.98 MB / 0.792 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002973/1.11, allocations: 4.153 MB / 0.7961 GB, free: 135.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003211/1.114, allocations: 1.322 MB / 0.7974 GB, free: 134.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007567/1.114, allocations: 271.4 kB / 0.7976 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.313e-06/1.114, allocations: 0 / 0.7976 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.06763/1.182, allocations: 45.26 MB / 0.8418 GB, free: 89.37 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)