Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.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_Slip1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1",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.009823/0.009823, allocations: 98.48 kB / 15.73 MB, free: 6.047 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.558/1.558, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001688/0.001687, allocations: 191.4 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03685/0.03685, allocations: 8.808 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002944/0.002944, allocations: 79.88 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1266, allocations: 51.56 MB / 0.5029 GB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.03309/0.1598, allocations: 25.41 MB / 0.5277 GB, free: 500 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2729/0.4327, allocations: 8.004 MB / 0.5356 GB, free: 4.367 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005696/0.4385, allocations: 174.1 kB / 0.5357 GB, free: 4.367 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01323/0.4517, allocations: 6.104 MB / 0.5417 GB, free: 3.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007704/0.4594, allocations: 2.736 MB / 0.5444 GB, free: 3.051 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004413/0.4639, allocations: 1.628 MB / 0.546 GB, free: 2.887 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01176/0.4757, allocations: 7.263 MB / 0.553 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02505/0.5008, allocations: 13.34 MB / 0.5661 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006825/0.5076, allocations: 3.729 MB / 0.5697 GB, free: 9.125 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008123/0.5158, allocations: 4.225 MB / 0.5738 GB, free: 5.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003383/0.5192, allocations: 1.074 MB / 0.5749 GB, free: 4.746 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006017/0.5253, allocations: 1.443 MB / 0.5763 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004066/0.5294, allocations: 2.137 MB / 0.5784 GB, free: 1.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007494/0.5369, allocations: 4.118 MB / 0.5824 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01923/0.5562, allocations: 14.47 MB / 0.5965 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.5562, allocations: 0 / 0.5965 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.5562, allocations: 0 / 0.5965 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003469/0.5566, allocations: 0 / 0.5965 GB, free: 14.88 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.03031/0.5869, allocations: 8.928 MB / 0.6053 GB, free: 5.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.587, allocations: 8.031 kB / 0.6053 GB, free: 5.922 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003736/0.5907, allocations: 1.052 MB / 0.6063 GB, free: 4.871 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02601/0.6167, allocations: 4.431 MB / 0.6106 GB, free: 496 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01031/0.6271, allocations: 4.635 MB / 0.6152 GB, free: 11.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000472/0.6276, allocations: 487.5 kB / 0.6156 GB, free: 11.35 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002245/0.6298, allocations: 0.6237 MB / 0.6162 GB, free: 10.74 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02876/0.6586, allocations: 10.36 MB / 0.6263 GB, free: 336 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002231/0.6589, allocations: 7.953 kB / 0.6264 GB, free: 328 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001682/0.6606, allocations: 274.1 kB / 0.6266 GB, free: 64 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005518/0.6611, allocations: 417.6 kB / 0.627 GB, free: 15.65 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02225/0.6834, allocations: 9.872 MB / 0.6367 GB, free: 5.762 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06509/0.7485, allocations: 35.41 MB / 0.6712 GB, free: 1.367 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02256/0.7711, allocations: 20.66 MB / 0.6914 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004512/0.7757, allocations: 2.311 MB / 0.6937 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000394/0.7761, allocations: 227.1 kB / 0.6939 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.861e-05/0.7762, allocations: 60.89 kB / 0.6939 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 5.179e-06/0.7762, allocations: 0 / 0.6939 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02411/0.8003, allocations: 10.96 MB / 0.7046 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.8004, allocations: 81.78 kB / 0.7047 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0051/0.8055, allocations: 3.029 MB / 0.7077 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004422/0.806, allocations: 69.7 kB / 0.7077 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002512/0.8085, allocations: 2.969 MB / 0.7106 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001765/0.8103, allocations: 1.083 MB / 0.7117 GB, free: 5.094 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001732/0.8121, allocations: 0.9138 MB / 0.7126 GB, free: 4.168 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.8122, allocations: 309.1 kB / 0.7129 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003447/0.8157, allocations: 2.02 MB / 0.7149 GB, free: 1.836 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00497/0.8207, allocations: 3.728 MB / 0.7185 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009355/0.8301, allocations: 6.047 MB / 0.7244 GB, free: 6.469 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.727e-05/0.8302, allocations: 16 kB / 0.7244 GB, free: 6.453 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.235/1.065, allocations: 6.643 MB / 0.7309 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.543e-05/1.065, allocations: 32.28 kB / 0.7309 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.155e-05/1.065, allocations: 54.44 kB / 0.731 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001788/1.067, allocations: 0.6692 MB / 0.7316 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003859/1.071, allocations: 1.065 MB / 0.7327 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009188/1.08, allocations: 6.231 MB / 0.7388 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004098/1.084, allocations: 279.2 kB / 0.739 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/1.085, allocations: 230.4 kB / 0.7392 GB, free: 162.6 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.004895/1.09, allocations: 2.31 MB / 0.7415 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009929/1.091, allocations: 341.6 kB / 0.7418 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008248/1.1, allocations: 4.629 MB / 0.7464 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.428e-05/1.1, allocations: 32.06 kB / 0.7464 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.15e-05/1.1, allocations: 6.094 kB / 0.7464 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.115e-05/1.1, allocations: 16.11 kB / 0.7464 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0213/1.121, allocations: 11.1 MB / 0.7572 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-05/1.121, allocations: 4.5 kB / 0.7572 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002133/1.123, allocations: 0.5361 MB / 0.7578 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001516/1.125, allocations: 0.5672 MB / 0.7583 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002813/1.125, allocations: 67.02 kB / 0.7584 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006427/1.132, allocations: 5.463 MB / 0.7637 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/1.132, allocations: 14.27 kB / 0.7637 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009298/1.141, allocations: 6.599 MB / 0.7702 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001695/1.143, allocations: 0.7411 MB / 0.7709 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005653/1.143, allocations: 55.62 kB / 0.771 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001656/1.145, allocations: 149.4 kB / 0.7711 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004414/1.145, allocations: 210.9 kB / 0.7713 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001687/1.146, allocations: 86 kB / 0.7714 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002724/1.148, allocations: 2.019 MB / 0.7734 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/1.148, allocations: 0 / 0.7734 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004585/1.153, allocations: 1.172 MB / 0.7745 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.01039/1.163, allocations: 7.296 MB / 0.7816 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007317/1.171, allocations: 5.032 MB / 0.7865 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/1.171, allocations: 0 / 0.7865 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003431/1.174, allocations: 2.275 MB / 0.7888 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003871/1.178, allocations: 0.6426 MB / 0.7894 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0587/1.237, allocations: 39.05 MB / 0.8275 GB, free: 100.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00355/1.24, allocations: 4.157 MB / 0.8316 GB, free: 96.43 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003441/1.244, allocations: 1.326 MB / 0.8329 GB, free: 95.11 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002707/1.247, allocations: 2.249 MB / 0.8351 GB, free: 92.86 MB / 0.5294 GB Notification: Performance of SimCode: time 1.192e-06/1.247, allocations: 0 / 0.8351 GB, free: 92.86 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1277/1.374, allocations: 88.43 MB / 0.9214 GB, free: 4.766 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.91/19.28, allocations: 8.047 kB / 0.9214 GB, free: 4.758 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1_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_Slip1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1)