Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",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.007722/0.007722, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.488/1.488, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001795/0.001794, allocations: 188.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03508/0.03508, allocations: 8.799 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002754/0.002754, allocations: 83.81 kB / 463.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1214, allocations: 51.56 MB / 0.503 GB, free: 9.953 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02751/0.149, allocations: 25.43 MB / 0.5278 GB, free: 420 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2836/0.4326, allocations: 8.003 MB / 0.5356 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005531/0.4382, allocations: 173.2 kB / 0.5358 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01567/0.4539, allocations: 6.137 MB / 0.5418 GB, free: 3.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01223/0.4662, allocations: 2.783 MB / 0.5445 GB, free: 3.051 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005425/0.4716, allocations: 1.624 MB / 0.5461 GB, free: 2.887 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01267/0.4843, allocations: 7.27 MB / 0.5532 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02631/0.5107, allocations: 13.34 MB / 0.5662 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009839/0.5205, allocations: 3.745 MB / 0.5698 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009403/0.53, allocations: 4.226 MB / 0.574 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003627/0.5337, allocations: 1.07 MB / 0.575 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005266/0.539, allocations: 1.438 MB / 0.5764 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00365/0.5427, allocations: 2.142 MB / 0.5785 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008327/0.551, allocations: 4.11 MB / 0.5825 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02362/0.5747, allocations: 14.48 MB / 0.5967 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.5747, allocations: 4 kB / 0.5967 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.103e-06/0.5747, allocations: 0 / 0.5967 GB, free: 14.77 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004614/0.5752, allocations: 0 / 0.5967 GB, free: 14.77 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.03044/0.6057, allocations: 8.925 MB / 0.6054 GB, free: 5.82 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/0.6057, allocations: 8.031 kB / 0.6054 GB, free: 5.812 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004084/0.6098, allocations: 1.049 MB / 0.6064 GB, free: 4.762 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02618/0.636, allocations: 4.429 MB / 0.6107 GB, free: 388 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01244/0.6485, allocations: 4.64 MB / 0.6153 GB, free: 11.71 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005845/0.6492, allocations: 490.3 kB / 0.6157 GB, free: 11.24 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002933/0.6521, allocations: 0.6257 MB / 0.6164 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03127/0.6834, allocations: 10.37 MB / 0.6265 GB, free: 216 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003559/0.6838, allocations: 7.953 kB / 0.6265 GB, free: 208 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002112/0.686, allocations: 268.4 kB / 0.6267 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004816/0.6865, allocations: 421.6 kB / 0.6271 GB, free: 15.54 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02047/0.7069, allocations: 9.88 MB / 0.6368 GB, free: 5.637 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06833/0.7753, allocations: 35.39 MB / 0.6714 GB, free: 1.262 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02151/0.7969, allocations: 20.66 MB / 0.6915 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004302/0.8013, allocations: 2.304 MB / 0.6938 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004708/0.8018, allocations: 223.8 kB / 0.694 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.142e-05/0.8019, allocations: 68.89 kB / 0.6941 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 4.969e-06/0.8019, allocations: 0 / 0.6941 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02303/0.8249, allocations: 10.96 MB / 0.7048 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.825, allocations: 81.78 kB / 0.7048 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005797/0.8308, allocations: 3.029 MB / 0.7078 GB, free: 9.098 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005642/0.8314, allocations: 77.7 kB / 0.7079 GB, free: 9.016 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002058/0.8335, allocations: 2.965 MB / 0.7108 GB, free: 6.043 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001641/0.8351, allocations: 1.085 MB / 0.7118 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002371/0.8375, allocations: 0.9099 MB / 0.7127 GB, free: 4.051 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.8376, allocations: 301.1 kB / 0.713 GB, free: 3.754 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003548/0.8412, allocations: 2.031 MB / 0.715 GB, free: 1.715 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004829/0.846, allocations: 3.721 MB / 0.7186 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008958/0.855, allocations: 6.051 MB / 0.7245 GB, free: 6.352 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-05/0.8551, allocations: 19.98 kB / 0.7245 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.2765/1.132, allocations: 6.642 MB / 0.731 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.029e-05/1.132, allocations: 33 kB / 0.7311 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.127e-05/1.132, allocations: 56.28 kB / 0.7311 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001706/1.134, allocations: 0.6654 MB / 0.7318 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004058/1.138, allocations: 1.067 MB / 0.7328 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008536/1.146, allocations: 6.224 MB / 0.7389 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003682/1.15, allocations: 280 kB / 0.7392 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005754/1.15, allocations: 228.4 kB / 0.7394 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.003948/1.154, allocations: 2.317 MB / 0.7416 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001021/1.155, allocations: 337.4 kB / 0.742 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008212/1.164, allocations: 4.634 MB / 0.7465 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/1.164, allocations: 31.47 kB / 0.7465 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.43e-05/1.164, allocations: 5.875 kB / 0.7465 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.752e-05/1.164, allocations: 15.42 kB / 0.7465 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0179/1.182, allocations: 11.1 MB / 0.7574 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-05/1.182, allocations: 4.844 kB / 0.7574 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002059/1.184, allocations: 0.5289 MB / 0.7579 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001572/1.185, allocations: 0.5706 MB / 0.7585 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001914/1.186, allocations: 67.73 kB / 0.7585 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006344/1.192, allocations: 5.462 MB / 0.7639 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/1.192, allocations: 8.688 kB / 0.7639 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01218/1.204, allocations: 6.609 MB / 0.7703 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00273/1.207, allocations: 0.7395 MB / 0.771 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009654/1.208, allocations: 55.66 kB / 0.7711 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002801/1.211, allocations: 152 kB / 0.7712 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005575/1.211, allocations: 208.9 kB / 0.7714 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000259/1.212, allocations: 91.45 kB / 0.7715 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004224/1.216, allocations: 2.018 MB / 0.7735 GB, free: 150 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.91e-07/1.216, allocations: 0 / 0.7735 GB, free: 150 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007341/1.223, allocations: 1.172 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.01543/1.239, allocations: 7.279 MB / 0.7817 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01388/1.253, allocations: 5.044 MB / 0.7867 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/1.253, allocations: 0 / 0.7867 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005541/1.258, allocations: 2.264 MB / 0.7889 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004995/1.263, allocations: 0.6426 MB / 0.7895 GB, free: 141.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05885/1.322, allocations: 39.07 MB / 0.8277 GB, free: 100.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004124/1.326, allocations: 4.15 MB / 0.8317 GB, free: 96.28 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003578/1.33, allocations: 1.326 MB / 0.833 GB, free: 94.95 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002963/1.333, allocations: 2.241 MB / 0.8352 GB, free: 92.71 MB / 0.5294 GB Notification: Performance of SimCode: time 1.212e-06/1.333, allocations: 8 kB / 0.8352 GB, free: 92.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1214/1.454, allocations: 88.43 MB / 0.9216 GB, free: 4.613 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.92/18.38, allocations: 3.984 kB / 0.9216 GB, free: 4.609 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2_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_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)