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.006058/0.006058, allocations: 97.3 kB / 15.73 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.328/1.328, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.00146/0.001461, allocations: 184.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03492/0.03492, allocations: 8.796 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001523, allocations: 79.88 kB / 463.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1083, allocations: 51.57 MB / 0.503 GB, free: 9.953 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.0268/0.1351, allocations: 25.43 MB / 0.5278 GB, free: 420 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2659/0.4011, allocations: 8.008 MB / 0.5356 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006914/0.4081, allocations: 172.5 kB / 0.5358 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01548/0.4236, allocations: 6.139 MB / 0.5418 GB, free: 3.816 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0106/0.4343, allocations: 2.777 MB / 0.5445 GB, free: 3.062 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00591/0.4402, allocations: 1.621 MB / 0.5461 GB, free: 2.902 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01379/0.454, allocations: 7.275 MB / 0.5532 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02722/0.4813, allocations: 13.44 MB / 0.5663 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008211/0.4896, allocations: 3.742 MB / 0.5699 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008367/0.498, allocations: 4.226 MB / 0.5741 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003673/0.5017, allocations: 1.07 MB / 0.5751 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005605/0.5073, allocations: 1.438 MB / 0.5765 GB, free: 3.559 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003513/0.5109, allocations: 2.138 MB / 0.5786 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008492/0.5194, allocations: 4.118 MB / 0.5826 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02066/0.5401, allocations: 14.48 MB / 0.5968 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.215e-05/0.5402, allocations: 0 / 0.5968 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.779e-06/0.5402, allocations: 0 / 0.5968 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000513/0.5407, allocations: 4 kB / 0.5968 GB, free: 15.12 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.02944/0.5702, allocations: 8.922 MB / 0.6055 GB, free: 6.172 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.5702, allocations: 12.03 kB / 0.6055 GB, free: 6.16 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003579/0.5738, allocations: 1.044 MB / 0.6065 GB, free: 5.117 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02635/0.6002, allocations: 4.432 MB / 0.6109 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01291/0.6132, allocations: 4.642 MB / 0.6154 GB, free: 12.06 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006432/0.6139, allocations: 483.1 kB / 0.6158 GB, free: 11.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003086/0.617, allocations: 0.6275 MB / 0.6165 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03048/0.6475, allocations: 10.36 MB / 0.6266 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002954/0.6478, allocations: 19.88 kB / 0.6266 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001998/0.6498, allocations: 269.4 kB / 0.6269 GB, free: 300 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005103/0.6503, allocations: 417.7 kB / 0.6273 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02112/0.6715, allocations: 9.864 MB / 0.6369 GB, free: 6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06366/0.7352, allocations: 35.4 MB / 0.6715 GB, free: 1.625 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02111/0.7563, allocations: 20.66 MB / 0.6916 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004198/0.7606, allocations: 2.303 MB / 0.6939 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004115/0.761, allocations: 227.6 kB / 0.6941 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.969e-05/0.7611, allocations: 64.89 kB / 0.6942 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 7.264e-06/0.7611, allocations: 0 / 0.6942 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02337/0.7845, allocations: 10.96 MB / 0.7049 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/0.7846, allocations: 81.78 kB / 0.7049 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00556/0.7902, allocations: 3.033 MB / 0.7079 GB, free: 9.461 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004136/0.7906, allocations: 73.7 kB / 0.708 GB, free: 9.383 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002064/0.7927, allocations: 2.962 MB / 0.7109 GB, free: 6.414 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001395/0.7941, allocations: 1.089 MB / 0.7119 GB, free: 5.34 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002253/0.7963, allocations: 0.9099 MB / 0.7128 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.7965, allocations: 305.1 kB / 0.7131 GB, free: 4.117 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003367/0.7998, allocations: 2.024 MB / 0.7151 GB, free: 2.086 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004716/0.8046, allocations: 3.728 MB / 0.7187 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008483/0.8131, allocations: 6.047 MB / 0.7246 GB, free: 6.719 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.617e-05/0.8132, allocations: 16 kB / 0.7246 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01486/0.828, allocations: 6.654 MB / 0.7311 GB, free: 12 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.2123/1.04, allocations: 29.73 kB / 0.7312 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001295/1.041, allocations: 54.66 kB / 0.7312 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001961/1.043, allocations: 0.6658 MB / 0.7319 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004157/1.047, allocations: 1.064 MB / 0.7329 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008947/1.056, allocations: 6.227 MB / 0.739 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004331/1.06, allocations: 285.4 kB / 0.7393 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006997/1.061, allocations: 225.6 kB / 0.7395 GB, free: 165.4 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.004812/1.066, allocations: 2.314 MB / 0.7417 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008021/1.066, allocations: 337 kB / 0.7421 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009947/1.076, allocations: 4.632 MB / 0.7466 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.57e-05/1.076, allocations: 30.72 kB / 0.7466 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.25e-05/1.077, allocations: 6.094 kB / 0.7466 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-05/1.077, allocations: 18.61 kB / 0.7466 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02037/1.097, allocations: 11.09 MB / 0.7575 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.848e-05/1.097, allocations: 4.531 kB / 0.7575 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002187/1.099, allocations: 0.5382 MB / 0.758 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001547/1.101, allocations: 0.5621 MB / 0.7586 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003015/1.101, allocations: 70.78 kB / 0.7586 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006708/1.108, allocations: 5.464 MB / 0.764 GB, free: 156.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/1.108, allocations: 5.5 kB / 0.764 GB, free: 156.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009931/1.118, allocations: 6.608 MB / 0.7704 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002625/1.12, allocations: 0.7395 MB / 0.7711 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008134/1.121, allocations: 55.31 kB / 0.7712 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00203/1.123, allocations: 151.4 kB / 0.7713 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004573/1.124, allocations: 210.4 kB / 0.7715 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001884/1.124, allocations: 89.88 kB / 0.7716 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003137/1.127, allocations: 2.016 MB / 0.7736 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.51e-07/1.127, allocations: 0 / 0.7736 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005594/1.133, allocations: 1.171 MB / 0.7747 GB, free: 152.3 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.01008/1.143, allocations: 7.287 MB / 0.7818 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008541/1.152, allocations: 5.04 MB / 0.7868 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/1.152, allocations: 2.531 kB / 0.7868 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003463/1.155, allocations: 2.268 MB / 0.789 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003451/1.159, allocations: 0.6549 MB / 0.7896 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05697/1.216, allocations: 39.05 MB / 0.8278 GB, free: 101.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005546/1.221, allocations: 4.142 MB / 0.8318 GB, free: 97.02 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004025/1.225, allocations: 1.334 MB / 0.8331 GB, free: 95.68 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003755/1.229, allocations: 2.249 MB / 0.8353 GB, free: 93.43 MB / 0.5294 GB Notification: Performance of SimCode: time 1.042e-06/1.229, allocations: 0 / 0.8353 GB, free: 93.43 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1222/1.351, allocations: 88.43 MB / 0.9217 GB, free: 5.344 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.91/18.26, allocations: 3.984 kB / 0.9217 GB, free: 5.34 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)