Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.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_Slip3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3",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.006885/0.006885, allocations: 99.53 kB / 15.73 MB, free: 6.48 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.442/1.442, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.00147/0.00147, allocations: 188.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03693/0.03693, allocations: 8.792 MB / 348.7 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002835/0.002835, allocations: 75.89 kB / 463.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1195, allocations: 51.56 MB / 0.503 GB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip3): time 0.02952/0.1491, allocations: 25.43 MB / 0.5278 GB, free: 400 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.268/0.4172, allocations: 8.011 MB / 0.5356 GB, free: 4.332 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005957/0.4232, allocations: 171 kB / 0.5358 GB, free: 4.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01405/0.4372, allocations: 6.139 MB / 0.5418 GB, free: 3.762 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008556/0.4458, allocations: 2.778 MB / 0.5445 GB, free: 3.008 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006111/0.4519, allocations: 1.615 MB / 0.5461 GB, free: 2.844 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01058/0.4625, allocations: 7.282 MB / 0.5532 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02017/0.4827, allocations: 13.36 MB / 0.5662 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007451/0.4902, allocations: 3.754 MB / 0.5699 GB, free: 9.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007838/0.4981, allocations: 4.214 MB / 0.574 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003222/0.5014, allocations: 1.074 MB / 0.5751 GB, free: 4.707 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00508/0.5065, allocations: 1.438 MB / 0.5765 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003556/0.5101, allocations: 2.143 MB / 0.5785 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01025/0.5204, allocations: 4.109 MB / 0.5826 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02479/0.5452, allocations: 14.48 MB / 0.5967 GB, free: 14.85 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.395e-06/0.5453, allocations: 0 / 0.5967 GB, free: 14.85 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5453, allocations: 0 / 0.5967 GB, free: 14.85 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004432/0.5457, allocations: 0 / 0.5967 GB, free: 14.85 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.02823/0.574, allocations: 8.932 MB / 0.6054 GB, free: 5.891 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.709e-05/0.5741, allocations: 8.031 kB / 0.6054 GB, free: 5.883 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004111/0.5782, allocations: 1.048 MB / 0.6065 GB, free: 4.836 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02654/0.6047, allocations: 4.432 MB / 0.6108 GB, free: 460 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01232/0.6171, allocations: 4.636 MB / 0.6153 GB, free: 11.79 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000808/0.618, allocations: 484.8 kB / 0.6158 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003539/0.6215, allocations: 0.6312 MB / 0.6164 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02915/0.6507, allocations: 10.36 MB / 0.6265 GB, free: 292 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002641/0.651, allocations: 7.953 kB / 0.6265 GB, free: 284 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002496/0.6535, allocations: 268.6 kB / 0.6268 GB, free: 24 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004942/0.654, allocations: 417.7 kB / 0.6272 GB, free: 15.61 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02397/0.678, allocations: 9.876 MB / 0.6368 GB, free: 5.719 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06798/0.746, allocations: 35.4 MB / 0.6714 GB, free: 1.332 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0209/0.767, allocations: 20.66 MB / 0.6916 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004325/0.7714, allocations: 2.307 MB / 0.6938 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004172/0.7718, allocations: 231.7 kB / 0.694 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.342e-05/0.7719, allocations: 64.89 kB / 0.6941 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 4.899e-06/0.7719, allocations: 0 / 0.6941 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02394/0.7959, allocations: 10.95 MB / 0.7048 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.022e-05/0.796, allocations: 89.77 kB / 0.7049 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004824/0.8008, allocations: 3.029 MB / 0.7078 GB, free: 9.168 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004618/0.8013, allocations: 69.7 kB / 0.7079 GB, free: 9.094 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00185/0.8031, allocations: 2.966 MB / 0.7108 GB, free: 6.121 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00111/0.8043, allocations: 1.089 MB / 0.7119 GB, free: 5.047 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001401/0.8057, allocations: 0.906 MB / 0.7127 GB, free: 4.129 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.655e-05/0.8058, allocations: 305.1 kB / 0.713 GB, free: 3.828 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00304/0.8088, allocations: 2.027 MB / 0.715 GB, free: 1.793 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004218/0.8131, allocations: 3.732 MB / 0.7187 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008379/0.8215, allocations: 6.047 MB / 0.7246 GB, free: 6.422 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-05/0.8216, allocations: 16 kB / 0.7246 GB, free: 6.406 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.2749/1.096, allocations: 6.641 MB / 0.7311 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.183e-05/1.097, allocations: 32.25 kB / 0.7311 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001082/1.097, allocations: 55.19 kB / 0.7311 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001802/1.098, allocations: 0.6701 MB / 0.7318 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004192/1.103, allocations: 1.068 MB / 0.7328 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009762/1.112, allocations: 6.225 MB / 0.7389 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004677/1.117, allocations: 287.5 kB / 0.7392 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007615/1.118, allocations: 228 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.005168/1.123, allocations: 2.312 MB / 0.7417 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007591/1.124, allocations: 337.7 kB / 0.742 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007847/1.132, allocations: 4.63 MB / 0.7465 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.343e-05/1.132, allocations: 30.59 kB / 0.7465 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.837e-05/1.132, allocations: 11.05 kB / 0.7466 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-05/1.132, allocations: 14.77 kB / 0.7466 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01808/1.15, allocations: 11.09 MB / 0.7574 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/1.15, allocations: 9.125 kB / 0.7574 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00209/1.152, allocations: 0.5319 MB / 0.7579 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/1.154, allocations: 0.5699 MB / 0.7585 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001696/1.154, allocations: 69.34 kB / 0.7586 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0064/1.16, allocations: 5.462 MB / 0.7639 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/1.16, allocations: 11.5 kB / 0.7639 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008525/1.169, allocations: 6.6 MB / 0.7703 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001687/1.17, allocations: 0.7402 MB / 0.7711 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004564/1.171, allocations: 67.38 kB / 0.7711 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/1.172, allocations: 146.5 kB / 0.7713 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003527/1.173, allocations: 212 kB / 0.7715 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/1.173, allocations: 89.47 kB / 0.7716 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00254/1.176, allocations: 2.011 MB / 0.7735 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/1.176, allocations: 0 / 0.7735 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003826/1.179, allocations: 1.176 MB / 0.7747 GB, free: 150 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.008366/1.188, allocations: 7.279 MB / 0.7818 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007287/1.195, allocations: 5.034 MB / 0.7867 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/1.195, allocations: 3.312 kB / 0.7867 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003173/1.198, allocations: 2.276 MB / 0.7889 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.003167/1.201, allocations: 0.6391 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.04692/1.248, allocations: 39.06 MB / 0.8277 GB, free: 100.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003298/1.252, allocations: 4.15 MB / 0.8317 GB, free: 96.37 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003054/1.255, allocations: 1.326 MB / 0.833 GB, free: 95.04 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002411/1.257, allocations: 2.245 MB / 0.8352 GB, free: 92.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.312e-06/1.257, allocations: 0 / 0.8352 GB, free: 92.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1201/1.377, allocations: 88.43 MB / 0.9216 GB, free: 4.703 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.34/19.71, allocations: 12.12 kB / 0.9216 GB, free: 4.699 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3_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_Slip3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe 2>&1)