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.001319/0.001319, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.277/1.277, allocations: 222.9 MB / 238.9 MB, free: 4.77 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.001428/0.001428, allocations: 192.5 kB / 289.1 MB, free: 2.512 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03383/0.03383, allocations: 8.803 MB / 348.1 MB, free: 4.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 80.81 kB / 410.5 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07725/0.07885, allocations: 51.56 MB / 462.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02561/0.1045, allocations: 25 MB / 487.1 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01382/0.1184, allocations: 7.944 MB / 495 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003892/0.1223, allocations: 167.5 kB / 495.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01235/0.1347, allocations: 5.777 MB / 0.4892 GB, free: 7.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008209/0.1429, allocations: 2.515 MB / 0.4917 GB, free: 5.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004258/0.1471, allocations: 1.522 MB / 0.4932 GB, free: 3.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008611/0.1558, allocations: 7.353 MB / 0.5003 GB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01431/0.1701, allocations: 10.96 MB / 0.511 GB, free: 1.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004253/0.1744, allocations: 3.232 MB / 0.5142 GB, free: 14.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005535/0.18, allocations: 4.04 MB / 0.5181 GB, free: 9.965 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001823/0.1818, allocations: 0.6953 MB / 0.5188 GB, free: 9.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003089/0.1849, allocations: 1.066 MB / 0.5199 GB, free: 8.203 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001838/0.1868, allocations: 1.764 MB / 0.5216 GB, free: 6.434 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005361/0.1921, allocations: 3.722 MB / 0.5252 GB, free: 2.695 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1877/0.3799, allocations: 14.1 MB / 0.539 GB, free: 27.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3799, allocations: 0 / 0.539 GB, free: 27.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3799, allocations: 2.922 kB / 0.539 GB, free: 27.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003316/0.3803, allocations: 3.625 kB / 0.539 GB, free: 27.21 MB / 366.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.02615/0.4064, allocations: 8.798 MB / 0.5476 GB, free: 23.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.4065, allocations: 10.38 kB / 0.5476 GB, free: 23.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002495/0.409, allocations: 1.046 MB / 0.5486 GB, free: 23.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0242/0.4332, allocations: 4.377 MB / 0.5529 GB, free: 21.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009799/0.443, allocations: 4.516 MB / 0.5573 GB, free: 20.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003185/0.4434, allocations: 493.6 kB / 0.5578 GB, free: 20.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001916/0.4453, allocations: 0.6271 MB / 0.5584 GB, free: 20.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01718/0.4625, allocations: 10.36 MB / 0.5685 GB, free: 16.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001219/0.4626, allocations: 9.469 kB / 0.5685 GB, free: 16.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006636/0.4633, allocations: 265.9 kB / 0.5688 GB, free: 16.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000305/0.4636, allocations: 418.9 kB / 0.5692 GB, free: 16.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01442/0.478, allocations: 9.863 MB / 0.5788 GB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05086/0.5289, allocations: 35.69 MB / 0.6137 GB, free: 4.898 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02103/0.55, allocations: 20.66 MB / 0.6338 GB, free: 13.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004489/0.5545, allocations: 2.304 MB / 0.6361 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003779/0.5549, allocations: 225.2 kB / 0.6363 GB, free: 11.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.584e-05/0.555, allocations: 63.3 kB / 0.6364 GB, free: 11 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.548e-06/0.555, allocations: 4 kB / 0.6364 GB, free: 11 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02311/0.5782, allocations: 10.87 MB / 0.647 GB, free: 16 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/0.5783, allocations: 81.78 kB / 0.6471 GB, free: 15.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00496/0.5832, allocations: 3.025 MB / 0.65 GB, free: 12.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003042/0.5836, allocations: 73.7 kB / 0.6501 GB, free: 12.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002197/0.5858, allocations: 2.865 MB / 0.6529 GB, free: 9.914 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001011/0.5868, allocations: 1.033 MB / 0.6539 GB, free: 8.891 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00139/0.5882, allocations: 0.9055 MB / 0.6548 GB, free: 7.973 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.5883, allocations: 307.8 kB / 0.6551 GB, free: 7.672 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003367/0.5917, allocations: 2.024 MB / 0.657 GB, free: 5.641 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004265/0.5959, allocations: 3.728 MB / 0.6607 GB, free: 1.152 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00876/0.6047, allocations: 6.048 MB / 0.6666 GB, free: 10.53 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.479e-05/0.6048, allocations: 19.98 kB / 0.6666 GB, free: 10.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0132/0.6181, allocations: 6.62 MB / 0.6731 GB, free: 4.195 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.647e-05/0.6182, allocations: 30.19 kB / 0.6731 GB, free: 4.168 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001343/0.6183, allocations: 56 kB / 0.6732 GB, free: 4.113 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001967/0.6203, allocations: 0.6741 MB / 0.6738 GB, free: 3.441 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004023/0.6243, allocations: 1.068 MB / 0.6749 GB, free: 2.445 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008338/0.6327, allocations: 5.8 MB / 0.6805 GB, free: 12.55 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00391/0.6366, allocations: 275.5 kB / 0.6808 GB, free: 12.29 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006764/0.6373, allocations: 228 kB / 0.681 GB, free: 12.06 MB / 478.1 MB 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.004393/0.6417, allocations: 2.319 MB / 0.6833 GB, free: 9.805 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007729/0.6425, allocations: 324 kB / 0.6836 GB, free: 9.484 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007875/0.6504, allocations: 4.623 MB / 0.6881 GB, free: 4.828 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.563e-05/0.6504, allocations: 34.34 kB / 0.6881 GB, free: 4.797 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.6504, allocations: 7.938 kB / 0.6881 GB, free: 4.789 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.507e-05/0.6504, allocations: 15.94 kB / 0.6881 GB, free: 4.773 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01955/0.67, allocations: 11.27 MB / 0.6991 GB, free: 9.402 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/0.6701, allocations: 4 kB / 0.6992 GB, free: 9.398 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002039/0.6721, allocations: 0.5314 MB / 0.6997 GB, free: 8.895 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001643/0.6738, allocations: 0.5688 MB / 0.7002 GB, free: 8.324 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002244/0.674, allocations: 67.98 kB / 0.7003 GB, free: 8.258 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006798/0.6808, allocations: 5.033 MB / 0.7052 GB, free: 3.113 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.6808, allocations: 12 kB / 0.7052 GB, free: 3.102 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1937/0.8745, allocations: 6.58 MB / 0.7116 GB, free: 175.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002782/0.8774, allocations: 0.72 MB / 0.7123 GB, free: 175.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001032/0.8784, allocations: 63.19 kB / 0.7124 GB, free: 175.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002675/0.8811, allocations: 146.7 kB / 0.7125 GB, free: 175.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006254/0.8818, allocations: 208.5 kB / 0.7127 GB, free: 175.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002812/0.8821, allocations: 87.42 kB / 0.7128 GB, free: 175.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004532/0.8866, allocations: 2.02 MB / 0.7148 GB, free: 175.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.8866, allocations: 0 / 0.7148 GB, free: 175.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006939/0.8936, allocations: 1.17 MB / 0.7159 GB, free: 175.1 MB / 494.1 MB 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.01416/0.9078, allocations: 7.263 MB / 0.723 GB, free: 171.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01126/0.9191, allocations: 5.022 MB / 0.7279 GB, free: 169.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/0.9191, allocations: 2.25 kB / 0.7279 GB, free: 169.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00519/0.9243, allocations: 2.27 MB / 0.7302 GB, free: 168.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005405/0.9297, allocations: 0.6053 MB / 0.7308 GB, free: 168.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07174/1.002, allocations: 47.12 MB / 0.7768 GB, free: 126.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003544/1.005, allocations: 4.148 MB / 0.7808 GB, free: 122.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004031/1.009, allocations: 1.325 MB / 0.7821 GB, free: 120.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002545/1.012, allocations: 2.249 MB / 0.7843 GB, free: 118.6 MB / 494.1 MB Notification: Performance of SimCode: time 8.72e-07/1.012, allocations: 0 / 0.7843 GB, free: 118.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1066/1.118, allocations: 88.16 MB / 0.8704 GB, free: 30.73 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001657/1.119, allocations: 221.5 kB / 0.8706 GB, free: 30.47 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.369/4.488, allocations: 4 kB / 0.8706 GB, free: 30.47 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1)