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.006972/0.006972, allocations: 103.7 kB / 15.74 MB, free: 6.039 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.272/1.272, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001244/0.001243, allocations: 184.5 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.03323/0.03323, allocations: 8.788 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 76.22 kB / 463.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0902/0.0916, allocations: 51.57 MB / 0.5034 GB, free: 9.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.2135/0.3052, allocations: 25.43 MB / 0.5283 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01182/0.317, allocations: 8.011 MB / 0.5361 GB, free: 4.941 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003789/0.3208, allocations: 170.2 kB / 0.5362 GB, free: 4.941 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01159/0.3325, allocations: 6.102 MB / 0.5422 GB, free: 4.316 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006742/0.3392, allocations: 2.748 MB / 0.5449 GB, free: 3.555 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003784/0.343, allocations: 1.613 MB / 0.5465 GB, free: 3.398 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00867/0.3517, allocations: 7.278 MB / 0.5536 GB, free: 1.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01943/0.3712, allocations: 13.37 MB / 0.5666 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005689/0.3769, allocations: 3.74 MB / 0.5703 GB, free: 9.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00684/0.3837, allocations: 4.217 MB / 0.5744 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002304/0.3861, allocations: 1.074 MB / 0.5754 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003871/0.3899, allocations: 1.437 MB / 0.5768 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001765/0.3917, allocations: 2.14 MB / 0.5789 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004265/0.396, allocations: 4.11 MB / 0.583 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01291/0.4089, allocations: 14.48 MB / 0.5971 GB, free: 15.05 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.409, allocations: 3.984 kB / 0.5971 GB, free: 15.05 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.409, allocations: 0 / 0.5971 GB, free: 15.05 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002308/0.4092, allocations: 0 / 0.5971 GB, free: 15.05 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.02125/0.4305, allocations: 8.93 MB / 0.6058 GB, free: 6.094 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.4305, allocations: 12.03 kB / 0.6058 GB, free: 6.082 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02346/0.454, allocations: 4.437 MB / 0.6102 GB, free: 1.691 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008215/0.4622, allocations: 4.625 MB / 0.6147 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003287/0.4626, allocations: 485.9 kB / 0.6151 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001342/0.4639, allocations: 0.6361 MB / 0.6158 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01774/0.4817, allocations: 10.35 MB / 0.6259 GB, free: 1.547 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001461/0.4818, allocations: 15.89 kB / 0.6259 GB, free: 1.531 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006936/0.4825, allocations: 260.8 kB / 0.6261 GB, free: 1.285 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003638/0.4829, allocations: 417.7 kB / 0.6265 GB, free: 0.875 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01601/0.4989, allocations: 9.864 MB / 0.6362 GB, free: 6.992 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0449/0.5439, allocations: 35.41 MB / 0.6707 GB, free: 2.602 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01699/0.5609, allocations: 20.66 MB / 0.6909 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003363/0.5643, allocations: 2.305 MB / 0.6932 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002819/0.5646, allocations: 227.5 kB / 0.6934 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.415e-05/0.5646, allocations: 64.89 kB / 0.6934 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 4.338e-06/0.5647, allocations: 0 / 0.6934 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.01872/0.5834, allocations: 10.96 MB / 0.7041 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.5835, allocations: 81.78 kB / 0.7042 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003826/0.5873, allocations: 3.029 MB / 0.7072 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001625/0.5875, allocations: 73.7 kB / 0.7072 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001634/0.5891, allocations: 2.964 MB / 0.7101 GB, free: 7.391 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000719/0.5898, allocations: 1.078 MB / 0.7112 GB, free: 6.324 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001194/0.591, allocations: 0.9138 MB / 0.7121 GB, free: 5.398 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.597e-05/0.5911, allocations: 305.1 kB / 0.7124 GB, free: 5.098 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002701/0.5938, allocations: 2.02 MB / 0.7144 GB, free: 3.07 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003722/0.5976, allocations: 3.728 MB / 0.718 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006666/0.6042, allocations: 6.043 MB / 0.7239 GB, free: 7.707 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-05/0.6043, allocations: 16 kB / 0.7239 GB, free: 7.691 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.009663/0.6139, allocations: 6.646 MB / 0.7304 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.119e-05/0.614, allocations: 32 kB / 0.7304 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-05/0.6141, allocations: 55.94 kB / 0.7305 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001704/0.6158, allocations: 0.6681 MB / 0.7311 GB, free: 256 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1963/0.8121, allocations: 1.063 MB / 0.7322 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007726/0.8198, allocations: 6.234 MB / 0.7383 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003466/0.8233, allocations: 276.6 kB / 0.7385 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005576/0.8239, allocations: 232.8 kB / 0.7387 GB, free: 166.7 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.003384/0.8273, allocations: 2.315 MB / 0.741 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000641/0.8279, allocations: 337.4 kB / 0.7413 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007424/0.8354, allocations: 4.634 MB / 0.7459 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.262e-05/0.8354, allocations: 32.2 kB / 0.7459 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.8354, allocations: 6.391 kB / 0.7459 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.278e-05/0.8355, allocations: 16.8 kB / 0.7459 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0157/0.8512, allocations: 11.09 MB / 0.7567 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.8512, allocations: 6.25 kB / 0.7567 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001934/0.8531, allocations: 0.535 MB / 0.7573 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/0.8546, allocations: 0.5711 MB / 0.7578 GB, free: 161.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00016/0.8548, allocations: 66.72 kB / 0.7579 GB, free: 161.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005847/0.8606, allocations: 5.452 MB / 0.7632 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.8606, allocations: 13.59 kB / 0.7632 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007772/0.8684, allocations: 6.6 MB / 0.7697 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001158/0.8696, allocations: 0.7477 MB / 0.7704 GB, free: 155 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003846/0.87, allocations: 59.34 kB / 0.7705 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.8714, allocations: 147.1 kB / 0.7706 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003152/0.8718, allocations: 206.7 kB / 0.7708 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/0.8719, allocations: 90.38 kB / 0.7709 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002175/0.8741, allocations: 2.015 MB / 0.7728 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.52e-07/0.8741, allocations: 0 / 0.7728 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003328/0.8774, allocations: 1.173 MB / 0.774 GB, free: 153.9 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.0004324/0.8779, allocations: 237.1 kB / 0.7742 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006485/0.8844, allocations: 5.036 MB / 0.7791 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.8844, allocations: 7.906 kB / 0.7791 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002893/0.8873, allocations: 2.262 MB / 0.7814 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.8901, allocations: 0.6444 MB / 0.782 GB, free: 150.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/0.9037, allocations: 11.16 MB / 0.7929 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002668/0.9064, allocations: 4.146 MB / 0.7969 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003053/0.9094, allocations: 1.33 MB / 0.7982 GB, free: 135.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007483/0.9102, allocations: 275.4 kB / 0.7985 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of SimCode: time 9.52e-07/0.9102, allocations: 0 / 0.7985 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.05893/0.9692, allocations: 45.25 MB / 0.8427 GB, free: 90.19 MB / 0.5294 GB 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)