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.001085/0.001085, allocations: 115.3 kB / 15.34 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.309/1.309, allocations: 222.9 MB / 239 MB, free: 4.699 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.00117/0.00117, allocations: 192.4 kB / 289.3 MB, free: 2.445 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03203/0.03203, allocations: 8.8 MB / 348.2 MB, free: 4.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 75.05 kB / 410.6 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09556/0.09692, allocations: 51.56 MB / 462.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02405/0.121, allocations: 25 MB / 487.1 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01732/0.1384, allocations: 7.897 MB / 495 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006509/0.145, allocations: 167.5 kB / 495.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01455/0.1596, allocations: 5.78 MB / 0.4892 GB, free: 7.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009049/0.1687, allocations: 2.489 MB / 0.4917 GB, free: 5.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004884/0.1736, allocations: 1.503 MB / 0.4931 GB, free: 3.754 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01025/0.1838, allocations: 7.247 MB / 0.5002 GB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02217/0.2061, allocations: 15.29 MB / 0.5151 GB, free: 13.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006666/0.2128, allocations: 3.755 MB / 0.5188 GB, free: 9.301 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007172/0.22, allocations: 4.29 MB / 0.523 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003259/0.2233, allocations: 1.074 MB / 0.5241 GB, free: 3.922 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004789/0.2281, allocations: 1.441 MB / 0.5255 GB, free: 2.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003426/0.2316, allocations: 2.147 MB / 0.5276 GB, free: 336 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2368/0.4684, allocations: 4.106 MB / 0.5316 GB, free: 24.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01925/0.4877, allocations: 14.36 MB / 0.5456 GB, free: 23.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.4878, allocations: 0.5312 kB / 0.5456 GB, free: 23.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4878, allocations: 1.75 kB / 0.5456 GB, free: 23.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005694/0.4884, allocations: 0 / 0.5456 GB, free: 23.01 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.03538/0.5238, allocations: 8.809 MB / 0.5542 GB, free: 19.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.5238, allocations: 13.78 kB / 0.5542 GB, free: 19.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02576/0.5496, allocations: 4.373 MB / 0.5585 GB, free: 17.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009801/0.5595, allocations: 4.509 MB / 0.5629 GB, free: 16.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003814/0.5599, allocations: 487.4 kB / 0.5633 GB, free: 16.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002749/0.5626, allocations: 0.6329 MB / 0.564 GB, free: 16.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02456/0.5872, allocations: 10.35 MB / 0.5741 GB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002325/0.5875, allocations: 10.81 kB / 0.5741 GB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00211/0.5896, allocations: 264.6 kB / 0.5743 GB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003695/0.59, allocations: 417.3 kB / 0.5747 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01903/0.609, allocations: 9.86 MB / 0.5844 GB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05815/0.6672, allocations: 35.69 MB / 0.6192 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0176/0.6848, allocations: 20.65 MB / 0.6394 GB, free: 7.273 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003697/0.6886, allocations: 2.303 MB / 0.6416 GB, free: 4.969 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003018/0.6889, allocations: 225.7 kB / 0.6418 GB, free: 4.719 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.642e-05/0.6889, allocations: 60.89 kB / 0.6419 GB, free: 4.648 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.418e-06/0.6889, allocations: 0 / 0.6419 GB, free: 4.648 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02323/0.7122, allocations: 10.87 MB / 0.6525 GB, free: 9.668 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.444e-05/0.7123, allocations: 85.78 kB / 0.6526 GB, free: 9.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006799/0.7191, allocations: 3.021 MB / 0.6556 GB, free: 6.531 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000775/0.7199, allocations: 73.7 kB / 0.6556 GB, free: 6.453 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002401/0.7224, allocations: 2.862 MB / 0.6584 GB, free: 3.574 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001726/0.7241, allocations: 1.036 MB / 0.6594 GB, free: 2.547 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002056/0.7262, allocations: 0.9055 MB / 0.6603 GB, free: 1.629 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.7263, allocations: 304.8 kB / 0.6606 GB, free: 1.332 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004384/0.7307, allocations: 2.031 MB / 0.6626 GB, free: 15.29 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004783/0.7355, allocations: 3.722 MB / 0.6662 GB, free: 10.81 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01093/0.7465, allocations: 6.042 MB / 0.6721 GB, free: 4.195 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.418e-05/0.7466, allocations: 16 kB / 0.6721 GB, free: 4.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01741/0.764, allocations: 6.624 MB / 0.6786 GB, free: 13.86 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.845e-05/0.7641, allocations: 28 kB / 0.6786 GB, free: 13.83 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/0.7642, allocations: 59.98 kB / 0.6787 GB, free: 13.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001861/0.7661, allocations: 0.6749 MB / 0.6794 GB, free: 13.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003953/0.7701, allocations: 1.074 MB / 0.6804 GB, free: 12.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008655/0.7787, allocations: 6.24 MB / 0.6865 GB, free: 5.762 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004091/0.7829, allocations: 275.5 kB / 0.6868 GB, free: 5.492 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008336/0.7837, allocations: 236 kB / 0.687 GB, free: 5.262 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.004331/0.7881, allocations: 2.305 MB / 0.6892 GB, free: 3.02 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008082/0.7889, allocations: 324 kB / 0.6895 GB, free: 2.699 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007923/0.7968, allocations: 4.632 MB / 0.6941 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.43e-05/0.7969, allocations: 31.94 kB / 0.6941 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.7969, allocations: 8 kB / 0.6941 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.948e-05/0.7969, allocations: 15.94 kB / 0.6941 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0197/0.8166, allocations: 11.27 MB / 0.7051 GB, free: 2.602 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.8167, allocations: 4 kB / 0.7051 GB, free: 2.598 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002085/0.8188, allocations: 0.5327 MB / 0.7056 GB, free: 2.094 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001634/0.8204, allocations: 0.5691 MB / 0.7062 GB, free: 1.523 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002814/0.8207, allocations: 71.97 kB / 0.7063 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2226/1.043, allocations: 5.455 MB / 0.7116 GB, free: 173.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/1.043, allocations: 7.062 kB / 0.7116 GB, free: 173.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00983/1.053, allocations: 6.577 MB / 0.718 GB, free: 172.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001672/1.055, allocations: 0.7195 MB / 0.7187 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005002/1.055, allocations: 62.44 kB / 0.7188 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/1.057, allocations: 147.8 kB / 0.7189 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004354/1.057, allocations: 213.2 kB / 0.7191 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001758/1.058, allocations: 87.55 kB / 0.7192 GB, free: 172.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00277/1.06, allocations: 2.017 MB / 0.7212 GB, free: 171.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/1.06, allocations: 0 / 0.7212 GB, free: 171.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003803/1.064, allocations: 1.177 MB / 0.7223 GB, free: 171.8 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.0004604/1.065, allocations: 222 kB / 0.7225 GB, free: 171.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01674/1.081, allocations: 8.29 MB / 0.7306 GB, free: 169.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/1.081, allocations: 2.625 kB / 0.7306 GB, free: 169.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003581/1.085, allocations: 2.266 MB / 0.7329 GB, free: 168.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003743/1.089, allocations: 0.6496 MB / 0.7335 GB, free: 168.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01835/1.107, allocations: 13.8 MB / 0.747 GB, free: 156.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004162/1.111, allocations: 4.144 MB / 0.751 GB, free: 153.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004062/1.115, allocations: 1.329 MB / 0.7523 GB, free: 152.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008236/1.116, allocations: 278.8 kB / 0.7526 GB, free: 152.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.643e-06/1.116, allocations: 0 / 0.7526 GB, free: 152.5 MB / 494.1 MB Notification: Performance of Templates: time 0.07627/1.193, allocations: 47.85 MB / 0.7993 GB, free: 106.9 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)