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.008922/0.008922, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.461/1.461, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001506/0.001506, allocations: 196.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03459/0.03459, allocations: 8.798 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 75.88 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1208, allocations: 51.57 MB / 0.5029 GB, free: 9.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02764/0.1485, allocations: 25.41 MB / 0.5277 GB, free: 472 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2626/0.4111, allocations: 7.999 MB / 0.5356 GB, free: 4.309 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005617/0.4168, allocations: 174.6 kB / 0.5357 GB, free: 4.309 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0154/0.4322, allocations: 6.106 MB / 0.5417 GB, free: 3.754 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009487/0.4417, allocations: 2.743 MB / 0.5444 GB, free: 2.996 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005168/0.4469, allocations: 1.617 MB / 0.5459 GB, free: 2.836 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01173/0.4586, allocations: 7.277 MB / 0.553 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02011/0.4788, allocations: 13.42 MB / 0.5662 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005597/0.4844, allocations: 3.743 MB / 0.5698 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007384/0.4918, allocations: 4.229 MB / 0.5739 GB, free: 6.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002655/0.4945, allocations: 1.07 MB / 0.575 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004962/0.4995, allocations: 1.435 MB / 0.5764 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002996/0.5025, allocations: 2.144 MB / 0.5785 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007974/0.5105, allocations: 4.113 MB / 0.5825 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01843/0.529, allocations: 14.44 MB / 0.5966 GB, free: 15.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.156e-06/0.529, allocations: 0 / 0.5966 GB, free: 15.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.529, allocations: 0 / 0.5966 GB, free: 15.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003599/0.5294, allocations: 0 / 0.5966 GB, free: 15.23 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.02735/0.5568, allocations: 8.774 MB / 0.6052 GB, free: 6.441 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.5568, allocations: 12.03 kB / 0.6052 GB, free: 6.43 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003299/0.5601, allocations: 1.037 MB / 0.6062 GB, free: 5.391 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02534/0.5855, allocations: 4.411 MB / 0.6105 GB, free: 1.023 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/0.5975, allocations: 4.612 MB / 0.615 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005842/0.5982, allocations: 490.5 kB / 0.6155 GB, free: 11.91 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003298/0.6015, allocations: 0.6249 MB / 0.6161 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02569/0.6272, allocations: 10.36 MB / 0.6262 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002558/0.6275, allocations: 19.84 kB / 0.6262 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001919/0.6294, allocations: 267.5 kB / 0.6265 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004813/0.6299, allocations: 417.7 kB / 0.6269 GB, free: 208 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02042/0.6504, allocations: 9.868 MB / 0.6365 GB, free: 6.316 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06388/0.7143, allocations: 35.31 MB / 0.671 GB, free: 2.008 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01974/0.7341, allocations: 20.68 MB / 0.6912 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00403/0.7381, allocations: 2.3 MB / 0.6934 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000419/0.7386, allocations: 229.5 kB / 0.6936 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.576e-05/0.7387, allocations: 64.89 kB / 0.6937 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 5.48e-06/0.7387, allocations: 0 / 0.6937 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02468/0.7634, allocations: 10.87 MB / 0.7043 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/0.7635, allocations: 81.78 kB / 0.7044 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005461/0.769, allocations: 3.021 MB / 0.7074 GB, free: 9.922 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003935/0.7694, allocations: 77.7 kB / 0.7074 GB, free: 9.84 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001873/0.7713, allocations: 2.862 MB / 0.7102 GB, free: 6.961 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001028/0.7723, allocations: 1.031 MB / 0.7112 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001621/0.7739, allocations: 0.9094 MB / 0.7121 GB, free: 5.016 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.644e-05/0.774, allocations: 305.1 kB / 0.7124 GB, free: 4.715 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003008/0.777, allocations: 2.027 MB / 0.7144 GB, free: 2.68 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004061/0.7811, allocations: 3.732 MB / 0.718 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007368/0.7885, allocations: 6.039 MB / 0.7239 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.514e-05/0.7886, allocations: 19.94 kB / 0.724 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01134/0.7999, allocations: 6.628 MB / 0.7304 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.072e-05/0.8, allocations: 35.94 kB / 0.7305 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.061e-05/0.8001, allocations: 52 kB / 0.7305 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2391/1.039, allocations: 0.6714 MB / 0.7312 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004608/1.044, allocations: 1.065 MB / 0.7322 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008654/1.053, allocations: 6.214 MB / 0.7383 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003657/1.056, allocations: 282.5 kB / 0.7385 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006463/1.057, allocations: 230.3 kB / 0.7388 GB, free: 165.3 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.00363/1.061, allocations: 2.311 MB / 0.741 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006806/1.061, allocations: 322.5 kB / 0.7413 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007623/1.069, allocations: 4.632 MB / 0.7458 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.93e-05/1.069, allocations: 31.25 kB / 0.7459 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/1.069, allocations: 5.969 kB / 0.7459 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.534e-05/1.069, allocations: 15.61 kB / 0.7459 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0195/1.088, allocations: 11.09 MB / 0.7567 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.769e-05/1.089, allocations: 4.531 kB / 0.7567 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002179/1.091, allocations: 0.5296 MB / 0.7573 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001485/1.092, allocations: 0.5692 MB / 0.7578 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001755/1.092, allocations: 71.5 kB / 0.7579 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007579/1.1, allocations: 5.453 MB / 0.7632 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/1.1, allocations: 12.84 kB / 0.7632 GB, free: 156.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009302/1.109, allocations: 6.577 MB / 0.7696 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/1.111, allocations: 0.7215 MB / 0.7703 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004756/1.111, allocations: 67.31 kB / 0.7704 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/1.113, allocations: 147.5 kB / 0.7705 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003693/1.113, allocations: 203.1 kB / 0.7707 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001522/1.113, allocations: 88.22 kB / 0.7708 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002586/1.116, allocations: 2.017 MB / 0.7728 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/1.116, allocations: 0 / 0.7728 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004178/1.12, allocations: 1.179 MB / 0.7739 GB, free: 152.4 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.008245/1.128, allocations: 7.273 MB / 0.781 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00756/1.136, allocations: 5.035 MB / 0.786 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/1.136, allocations: 0 / 0.786 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003318/1.139, allocations: 2.269 MB / 0.7882 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003471/1.143, allocations: 0.6423 MB / 0.7888 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05278/1.196, allocations: 38.87 MB / 0.8268 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004566/1.2, allocations: 4.15 MB / 0.8308 GB, free: 98.05 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004/1.204, allocations: 1.326 MB / 0.8321 GB, free: 96.72 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003483/1.208, allocations: 2.237 MB / 0.8343 GB, free: 94.48 MB / 0.5294 GB Notification: Performance of SimCode: time 1.272e-06/1.208, allocations: 4 kB / 0.8343 GB, free: 94.48 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1234/1.331, allocations: 88.91 MB / 0.9211 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.81/17.14, allocations: 7.922 kB / 0.9211 GB, free: 5.91 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 & /home/hudson/saved_omc/OMSimulator/install/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)