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.00601/0.00601, allocations: 96.31 kB / 15.73 MB, free: 6.043 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.438/1.438, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001556/0.001556, allocations: 192.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.03738/0.03738, allocations: 8.81 MB / 348.7 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002344/0.002345, allocations: 75.88 kB / 463.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1175, allocations: 51.57 MB / 0.503 GB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip3): time 0.0309/0.1484, allocations: 25.44 MB / 0.5278 GB, free: 452 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.241/0.3894, allocations: 7.994 MB / 0.5356 GB, free: 4.285 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006077/0.3955, allocations: 172.5 kB / 0.5358 GB, free: 4.285 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01321/0.4088, allocations: 6.1 MB / 0.5417 GB, free: 3.715 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008448/0.4173, allocations: 2.745 MB / 0.5444 GB, free: 2.957 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004794/0.4221, allocations: 1.615 MB / 0.546 GB, free: 2.797 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01065/0.4328, allocations: 7.279 MB / 0.5531 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02073/0.4535, allocations: 13.35 MB / 0.5661 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006861/0.4604, allocations: 3.734 MB / 0.5698 GB, free: 9.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008567/0.469, allocations: 4.22 MB / 0.5739 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003565/0.4726, allocations: 1.074 MB / 0.575 GB, free: 4.832 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005582/0.4782, allocations: 1.442 MB / 0.5764 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003679/0.482, allocations: 2.138 MB / 0.5784 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007969/0.4899, allocations: 4.109 MB / 0.5825 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01999/0.51, allocations: 14.48 MB / 0.5966 GB, free: 14.97 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.51, allocations: 0 / 0.5966 GB, free: 14.97 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.51, allocations: 0 / 0.5966 GB, free: 14.97 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003065/0.5103, allocations: 0 / 0.5966 GB, free: 14.97 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.0248/0.5351, allocations: 8.926 MB / 0.6053 GB, free: 6.02 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.5352, allocations: 12.03 kB / 0.6053 GB, free: 6.008 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002301/0.5375, allocations: 1.04 MB / 0.6063 GB, free: 4.965 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02504/0.5626, allocations: 4.436 MB / 0.6107 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01027/0.5729, allocations: 4.638 MB / 0.6152 GB, free: 11.91 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004942/0.5734, allocations: 494.1 kB / 0.6157 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002309/0.5757, allocations: 0.6259 MB / 0.6163 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02708/0.6028, allocations: 10.35 MB / 0.6264 GB, free: 428 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003501/0.6032, allocations: 19.88 kB / 0.6264 GB, free: 408 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002558/0.6058, allocations: 267.3 kB / 0.6267 GB, free: 152 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006926/0.6065, allocations: 417.7 kB / 0.6271 GB, free: 15.74 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02241/0.6289, allocations: 9.868 MB / 0.6367 GB, free: 5.852 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06851/0.6975, allocations: 35.4 MB / 0.6713 GB, free: 1.465 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02381/0.7213, allocations: 20.68 MB / 0.6915 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004752/0.7261, allocations: 2.304 MB / 0.6937 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005222/0.7267, allocations: 226.3 kB / 0.6939 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.15e-05/0.7268, allocations: 64.89 kB / 0.694 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 4.549e-06/0.7268, allocations: 0 / 0.694 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02698/0.7538, allocations: 10.95 MB / 0.7047 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.7539, allocations: 81.78 kB / 0.7048 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00568/0.7596, allocations: 3.025 MB / 0.7077 GB, free: 9.301 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005403/0.7602, allocations: 81.69 kB / 0.7078 GB, free: 9.215 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00285/0.763, allocations: 2.96 MB / 0.7107 GB, free: 6.246 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001605/0.7647, allocations: 1.085 MB / 0.7118 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003/0.7677, allocations: 0.9138 MB / 0.7126 GB, free: 4.25 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.7678, allocations: 305.1 kB / 0.7129 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004187/0.772, allocations: 2.024 MB / 0.7149 GB, free: 1.918 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006526/0.7786, allocations: 3.724 MB / 0.7185 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01484/0.7935, allocations: 6.047 MB / 0.7245 GB, free: 6.547 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.939e-05/0.7936, allocations: 19.94 kB / 0.7245 GB, free: 6.527 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.2241/1.018, allocations: 6.645 MB / 0.731 GB, free: 164 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.215e-05/1.018, allocations: 29.09 kB / 0.731 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.932e-05/1.018, allocations: 57.03 kB / 0.731 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001752/1.02, allocations: 0.6651 MB / 0.7317 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003863/1.024, allocations: 1.073 MB / 0.7327 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008417/1.032, allocations: 6.223 MB / 0.7388 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003569/1.036, allocations: 282.2 kB / 0.7391 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006138/1.036, allocations: 228.8 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.003995/1.04, allocations: 2.317 MB / 0.7416 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007505/1.041, allocations: 336.2 kB / 0.7419 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008102/1.049, allocations: 4.629 MB / 0.7464 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-05/1.049, allocations: 30.72 kB / 0.7464 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/1.049, allocations: 7 kB / 0.7464 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.97e-05/1.049, allocations: 15 kB / 0.7465 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01782/1.067, allocations: 11.1 MB / 0.7573 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/1.067, allocations: 7.375 kB / 0.7573 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002051/1.069, allocations: 0.5273 MB / 0.7578 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001542/1.071, allocations: 0.5686 MB / 0.7584 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003124/1.071, allocations: 71.53 kB / 0.7584 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00648/1.078, allocations: 5.461 MB / 0.7638 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.078, allocations: 10.94 kB / 0.7638 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008687/1.086, allocations: 6.6 MB / 0.7702 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001551/1.088, allocations: 0.737 MB / 0.771 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000525/1.088, allocations: 63.38 kB / 0.771 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001538/1.09, allocations: 149.6 kB / 0.7712 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003946/1.09, allocations: 202.2 kB / 0.7714 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001612/1.09, allocations: 94.52 kB / 0.7714 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002468/1.093, allocations: 2.016 MB / 0.7734 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/1.093, allocations: 0 / 0.7734 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003882/1.097, 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.008383/1.105, allocations: 7.289 MB / 0.7817 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007342/1.113, allocations: 5.043 MB / 0.7866 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/1.113, allocations: 0 / 0.7866 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003388/1.116, allocations: 2.264 MB / 0.7888 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003111/1.119, allocations: 0.6491 MB / 0.7894 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05712/1.176, allocations: 39.06 MB / 0.8276 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003329/1.18, allocations: 4.154 MB / 0.8316 GB, free: 96.52 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003163/1.183, allocations: 1.326 MB / 0.8329 GB, free: 95.19 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002663/1.186, allocations: 2.237 MB / 0.8351 GB, free: 92.95 MB / 0.5294 GB Notification: Performance of SimCode: time 1.302e-06/1.186, allocations: 3.938 kB / 0.8351 GB, free: 92.95 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1285/1.314, allocations: 88.43 MB / 0.9215 GB, free: 4.863 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.93/19.24, allocations: 14.8 kB / 0.9215 GB, free: 4.852 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)