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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0008712/0.0008713, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.339/1.339, allocations: 223.3 MB / 239 MB, free: 5.441 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.001006/0.001006, allocations: 180.5 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03258/0.03258, allocations: 8.777 MB / 350.1 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003591, allocations: 10.81 kB / 413.3 MB, free: 42.94 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09026/0.09065, allocations: 52.56 MB / 465.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02175/0.1124, allocations: 22.18 MB / 488 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01512/0.1276, allocations: 7.378 MB / 495.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004698/0.1323, allocations: 163.5 kB / 495.6 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004864/0.1372, allocations: 1.243 MB / 496.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00824/0.1455, allocations: 2.246 MB / 499.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00405/0.1496, allocations: 1.035 MB / 0.4884 GB, free: 11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.013/0.1626, allocations: 8.471 MB / 0.4966 GB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02157/0.1842, allocations: 11.1 MB / 0.5075 GB, free: 7.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004819/0.1891, allocations: 2.757 MB / 0.5102 GB, free: 4.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005608/0.1947, allocations: 3.226 MB / 0.5133 GB, free: 1.301 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001614/0.1963, allocations: 428 kB / 0.5137 GB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003104/0.1995, allocations: 0.7652 MB / 0.5145 GB, free: 120 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001496/0.201, allocations: 1.351 MB / 0.5158 GB, free: 14.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002317/0.2033, allocations: 1.385 MB / 0.5172 GB, free: 13.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01308/0.2164, allocations: 12.13 MB / 0.529 GB, free: 1.203 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2164, allocations: 0 / 0.529 GB, free: 1.203 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.2164, allocations: 0 / 0.529 GB, free: 1.203 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003772/0.2168, allocations: 0 / 0.529 GB, free: 1.203 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.2272/0.444, allocations: 7.448 MB / 0.5363 GB, free: 60 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.4441, allocations: 10.81 kB / 0.5363 GB, free: 60 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004786/0.4489, allocations: 1.046 MB / 0.5373 GB, free: 59.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02459/0.4735, allocations: 4.407 MB / 0.5416 GB, free: 58.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009878/0.4834, allocations: 4.468 MB / 0.546 GB, free: 57.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005661/0.484, allocations: 493.2 kB / 0.5464 GB, free: 57.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002411/0.4864, allocations: 0.626 MB / 0.5471 GB, free: 57.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01909/0.5055, allocations: 10.32 MB / 0.5571 GB, free: 51.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000132/0.5057, allocations: 7.844 kB / 0.5571 GB, free: 51.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006214/0.5063, allocations: 269 kB / 0.5574 GB, free: 51.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002937/0.5066, allocations: 418.4 kB / 0.5578 GB, free: 51.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01418/0.5208, allocations: 9.809 MB / 0.5674 GB, free: 41.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04247/0.5633, allocations: 35.77 MB / 0.6023 GB, free: 4.934 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01572/0.5791, allocations: 20.63 MB / 0.6224 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003772/0.5829, allocations: 2.301 MB / 0.6247 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003161/0.5832, allocations: 224.3 kB / 0.6249 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/0.5833, allocations: 68.84 kB / 0.625 GB, free: 11.04 MB / 398.1 MB Notification: Performance of pre-optimization done (n=295): time 4.158e-06/0.5833, allocations: 0 / 0.625 GB, free: 11.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=301): time 0.0233/0.6066, allocations: 11.59 MB / 0.6363 GB, free: 15.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.6067, allocations: 85.72 kB / 0.6364 GB, free: 15.22 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004342/0.611, allocations: 2.997 MB / 0.6393 GB, free: 12.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002449/0.6113, allocations: 77.64 kB / 0.6394 GB, free: 12.12 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001678/0.613, allocations: 2.869 MB / 0.6422 GB, free: 9.234 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000857/0.6139, allocations: 1.023 MB / 0.6432 GB, free: 8.219 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.6141, allocations: 96 kB / 0.6433 GB, free: 8.125 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002579/0.6143, allocations: 496.1 kB / 0.6437 GB, free: 7.633 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002855/0.6172, allocations: 2.004 MB / 0.6457 GB, free: 5.621 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003851/0.6211, allocations: 3.712 MB / 0.6493 GB, free: 1.121 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003936/0.625, allocations: 2.821 MB / 0.6521 GB, free: 14.29 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.358e-05/0.6251, allocations: 16 kB / 0.6521 GB, free: 14.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01001/0.6351, allocations: 6.595 MB / 0.6585 GB, free: 7.637 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.466e-05/0.6351, allocations: 28 kB / 0.6586 GB, free: 7.609 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-05/0.6352, allocations: 56 kB / 0.6586 GB, free: 7.555 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001592/0.6368, allocations: 0.6691 MB / 0.6593 GB, free: 6.883 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003358/0.6402, allocations: 1.065 MB / 0.6603 GB, free: 5.816 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007541/0.6477, allocations: 5.808 MB / 0.666 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003349/0.6511, allocations: 275.5 kB / 0.6662 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004398/0.6516, allocations: 232 kB / 0.6665 GB, free: 15.37 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,67.2%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00403/0.6556, allocations: 2.315 MB / 0.6687 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006788/0.6563, allocations: 320.1 kB / 0.669 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007416/0.6637, allocations: 4.617 MB / 0.6735 GB, free: 8.051 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.622e-05/0.6638, allocations: 32 kB / 0.6736 GB, free: 8.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.6638, allocations: 7.938 kB / 0.6736 GB, free: 8.012 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.658e-05/0.6638, allocations: 15.94 kB / 0.6736 GB, free: 7.996 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01767/0.6815, allocations: 11.25 MB / 0.6846 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.6815, allocations: 4 kB / 0.6846 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002028/0.6836, allocations: 0.5382 MB / 0.6851 GB, free: 12.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001521/0.6851, allocations: 0.5579 MB / 0.6856 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002658/0.6854, allocations: 71.98 kB / 0.6857 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006799/0.6922, allocations: 5.043 MB / 0.6906 GB, free: 6.203 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.906e-06/0.6922, allocations: 7.938 kB / 0.6906 GB, free: 6.195 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009803/0.7021, allocations: 6.538 MB / 0.697 GB, free: 15.49 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/0.7038, allocations: 0.7467 MB / 0.6978 GB, free: 14.72 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004786/0.7043, allocations: 63.94 kB / 0.6978 GB, free: 14.66 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.7057, allocations: 147.9 kB / 0.698 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003484/0.7061, allocations: 210 kB / 0.6982 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000167/0.7063, allocations: 87.98 kB / 0.6982 GB, free: 14.22 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002986/0.7093, allocations: 1.997 MB / 0.7002 GB, free: 12.22 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7093, allocations: 0 / 0.7002 GB, free: 12.22 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004041/0.7133, allocations: 1.171 MB / 0.7013 GB, free: 11.05 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,62.5%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009833/0.7232, allocations: 7.244 MB / 0.7084 GB, free: 3.641 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2046/0.9279, allocations: 4.989 MB / 0.7133 GB, free: 160.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/0.9279, allocations: 2.906 kB / 0.7133 GB, free: 160.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003798/0.9317, allocations: 2.258 MB / 0.7155 GB, free: 160 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003412/0.9352, allocations: 0.6176 MB / 0.7161 GB, free: 160 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.065/1, allocations: 32.13 MB / 0.7475 GB, free: 144.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00406/1.004, allocations: 4.152 MB / 0.7515 GB, free: 142.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00396/1.008, allocations: 1.328 MB / 0.7528 GB, free: 142.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002728/1.011, allocations: 2.245 MB / 0.755 GB, free: 140.1 MB / 478.1 MB Notification: Performance of SimCode: time 8.32e-07/1.011, allocations: 0 / 0.755 GB, free: 140.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1104/1.121, allocations: 85.86 MB / 0.8389 GB, free: 54.61 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/1.122, allocations: 202.7 kB / 0.8391 GB, free: 54.36 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.518/4.64, allocations: 0.7656 kB / 0.8391 GB, free: 54.36 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1) Environment - environmentSimulation: