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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006324/0.006325, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.503/1.503, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.001831/0.001831, allocations: 196.5 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05396/0.05396, allocations: 8.789 MB / 348.7 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002315/0.002315, allocations: 79.88 kB / 463.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1059, allocations: 51.56 MB / 0.503 GB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.03011/0.136, allocations: 25.44 MB / 0.5278 GB, free: 0.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2138/0.3499, allocations: 8.001 MB / 0.5356 GB, free: 4.285 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005333/0.3553, allocations: 174.1 kB / 0.5358 GB, free: 4.285 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01378/0.3691, allocations: 6.103 MB / 0.5417 GB, free: 3.727 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008912/0.378, allocations: 2.737 MB / 0.5444 GB, free: 2.969 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005442/0.3835, allocations: 1.618 MB / 0.546 GB, free: 2.805 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01154/0.3951, allocations: 7.273 MB / 0.5531 GB, free: 0.8086 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02306/0.4182, allocations: 13.37 MB / 0.5661 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008468/0.4267, allocations: 3.729 MB / 0.5698 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008964/0.4357, allocations: 4.228 MB / 0.5739 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003445/0.4392, allocations: 1.07 MB / 0.575 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005589/0.4448, allocations: 1.431 MB / 0.5764 GB, free: 3.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003546/0.4484, allocations: 2.141 MB / 0.5785 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0098/0.4582, allocations: 4.117 MB / 0.5825 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0221/0.4803, allocations: 14.47 MB / 0.5966 GB, free: 14.94 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4804, allocations: 3.938 kB / 0.5966 GB, free: 14.94 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4804, allocations: 0 / 0.5966 GB, free: 14.94 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004031/0.4808, allocations: 0 / 0.5966 GB, free: 14.94 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.0287/0.5095, allocations: 8.923 MB / 0.6053 GB, free: 5.992 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.431e-05/0.5096, allocations: 12.03 kB / 0.6053 GB, free: 5.98 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003679/0.5133, allocations: 1.044 MB / 0.6064 GB, free: 4.934 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02645/0.5398, allocations: 4.436 MB / 0.6107 GB, free: 0.543 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01165/0.5515, allocations: 4.64 MB / 0.6152 GB, free: 11.88 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000637/0.5521, allocations: 483.1 kB / 0.6157 GB, free: 11.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002962/0.5551, allocations: 0.6277 MB / 0.6163 GB, free: 10.79 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03068/0.5858, allocations: 10.36 MB / 0.6264 GB, free: 400 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004487/0.5863, allocations: 15.94 kB / 0.6264 GB, free: 384 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002658/0.589, allocations: 268.8 kB / 0.6267 GB, free: 124 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006724/0.5897, allocations: 417.7 kB / 0.6271 GB, free: 15.71 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02487/0.6146, allocations: 9.865 MB / 0.6367 GB, free: 5.828 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07547/0.6901, allocations: 35.42 MB / 0.6713 GB, free: 1.422 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02507/0.7152, allocations: 20.66 MB / 0.6915 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004905/0.7202, allocations: 2.304 MB / 0.6937 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005387/0.7208, allocations: 225.7 kB / 0.6939 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.172e-05/0.7209, allocations: 64.89 kB / 0.694 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 6.973e-06/0.7209, allocations: 0 / 0.694 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02739/0.7483, allocations: 10.96 MB / 0.7047 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.7485, allocations: 81.78 kB / 0.7048 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006469/0.7549, allocations: 3.029 MB / 0.7077 GB, free: 9.266 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004974/0.7555, allocations: 77.7 kB / 0.7078 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002842/0.7583, allocations: 2.967 MB / 0.7107 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001479/0.7598, allocations: 1.078 MB / 0.7118 GB, free: 5.145 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002529/0.7624, allocations: 0.9138 MB / 0.7127 GB, free: 4.219 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.7626, allocations: 301.1 kB / 0.7129 GB, free: 3.922 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003884/0.7665, allocations: 2.031 MB / 0.7149 GB, free: 1.883 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00559/0.7721, allocations: 3.724 MB / 0.7186 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00968/0.7818, allocations: 6.047 MB / 0.7245 GB, free: 6.52 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.648e-05/0.7819, allocations: 20 kB / 0.7245 GB, free: 6.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.2386/1.021, allocations: 6.645 MB / 0.731 GB, free: 164 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.652e-05/1.021, allocations: 32.62 kB / 0.731 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.22e-05/1.021, allocations: 55.59 kB / 0.7311 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001956/1.023, allocations: 0.6643 MB / 0.7317 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004063/1.027, allocations: 1.072 MB / 0.7328 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008839/1.036, allocations: 6.222 MB / 0.7388 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004177/1.04, allocations: 281 kB / 0.7391 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009275/1.041, allocations: 227.1 kB / 0.7393 GB, free: 162.5 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.005165/1.046, allocations: 2.312 MB / 0.7416 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000981/1.047, allocations: 337.4 kB / 0.7419 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009569/1.057, allocations: 4.634 MB / 0.7464 GB, free: 162 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.995e-05/1.057, allocations: 31.28 kB / 0.7465 GB, free: 162 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.598e-05/1.057, allocations: 7.422 kB / 0.7465 GB, free: 162 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.459e-05/1.057, allocations: 15.28 kB / 0.7465 GB, free: 162 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01927/1.076, allocations: 11.1 MB / 0.7573 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.678e-05/1.076, allocations: 4.625 kB / 0.7573 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002063/1.078, allocations: 0.5333 MB / 0.7578 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001526/1.08, allocations: 0.5604 MB / 0.7584 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003173/1.08, allocations: 79.3 kB / 0.7585 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006632/1.087, allocations: 5.456 MB / 0.7638 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/1.087, allocations: 7.906 kB / 0.7638 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009285/1.096, allocations: 6.596 MB / 0.7702 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001677/1.098, allocations: 0.7395 MB / 0.771 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006394/1.098, allocations: 59.55 kB / 0.771 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001719/1.1, allocations: 144.7 kB / 0.7712 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000424/1.101, allocations: 214.3 kB / 0.7714 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001763/1.101, allocations: 93.56 kB / 0.7715 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002852/1.104, allocations: 2.016 MB / 0.7734 GB, free: 150 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.61e-07/1.104, allocations: 1.312 kB / 0.7734 GB, free: 150 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0047/1.108, allocations: 1.174 MB / 0.7746 GB, free: 149.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.009564/1.118, allocations: 7.281 MB / 0.7817 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007707/1.126, allocations: 5.048 MB / 0.7866 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/1.126, allocations: 3.812 kB / 0.7866 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003483/1.129, allocations: 2.267 MB / 0.7888 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00352/1.133, allocations: 0.6409 MB / 0.7895 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05572/1.189, allocations: 39.06 MB / 0.8276 GB, free: 100.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003526/1.192, allocations: 4.15 MB / 0.8316 GB, free: 96.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00333/1.195, allocations: 1.33 MB / 0.8329 GB, free: 95.07 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00293/1.198, allocations: 2.245 MB / 0.8351 GB, free: 92.82 MB / 0.5294 GB Notification: Performance of SimCode: time 1.342e-06/1.198, allocations: 0 / 0.8351 GB, free: 92.82 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1341/1.332, allocations: 88.43 MB / 0.9215 GB, free: 4.734 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.18/18.51, allocations: 7.984 kB / 0.9215 GB, free: 4.727 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1)