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.009815/0.009816, allocations: 100.7 kB / 15.73 MB, free: 6.453 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.441/1.441, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.00156/0.00156, allocations: 192.4 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05047/0.05047, allocations: 8.797 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 79.88 kB / 463.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1029, allocations: 51.56 MB / 0.503 GB, free: 9.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.0289/0.1318, allocations: 25.43 MB / 0.5278 GB, free: 412 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.221/0.3529, allocations: 8.006 MB / 0.5356 GB, free: 4.379 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005803/0.3587, allocations: 173.2 kB / 0.5358 GB, free: 4.379 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01559/0.3743, allocations: 6.096 MB / 0.5417 GB, free: 3.801 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00941/0.3838, allocations: 2.741 MB / 0.5444 GB, free: 3.043 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005352/0.3892, allocations: 1.614 MB / 0.546 GB, free: 2.883 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.4004, allocations: 7.28 MB / 0.5531 GB, free: 0.8633 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02197/0.4224, allocations: 13.36 MB / 0.5661 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007548/0.43, allocations: 3.736 MB / 0.5698 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008114/0.4381, allocations: 4.22 MB / 0.5739 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003613/0.4418, allocations: 1.07 MB / 0.5749 GB, free: 4.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00619/0.448, allocations: 1.437 MB / 0.5764 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003192/0.4512, allocations: 2.141 MB / 0.5784 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007719/0.459, allocations: 4.112 MB / 0.5825 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0169/0.4759, allocations: 14.44 MB / 0.5966 GB, free: 14.96 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4759, allocations: 0 / 0.5966 GB, free: 14.96 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4759, allocations: 0 / 0.5966 GB, free: 14.96 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003763/0.4763, allocations: 0 / 0.5966 GB, free: 14.96 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.02763/0.504, allocations: 8.774 MB / 0.6051 GB, free: 6.176 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.504, allocations: 12.03 kB / 0.6051 GB, free: 6.164 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003457/0.5075, allocations: 1.041 MB / 0.6062 GB, free: 5.121 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02617/0.5337, allocations: 4.408 MB / 0.6105 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01199/0.5457, allocations: 4.614 MB / 0.615 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004657/0.5462, allocations: 488 kB / 0.6154 GB, free: 11.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00267/0.5489, allocations: 0.6315 MB / 0.616 GB, free: 11.02 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02615/0.5751, allocations: 10.36 MB / 0.6262 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002349/0.5754, allocations: 7.906 kB / 0.6262 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001549/0.5769, allocations: 268.3 kB / 0.6264 GB, free: 364 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004835/0.5774, allocations: 417.7 kB / 0.6268 GB, free: 15.94 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02158/0.599, allocations: 9.872 MB / 0.6365 GB, free: 6.055 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06835/0.6674, allocations: 35.31 MB / 0.6709 GB, free: 1.754 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01981/0.6873, allocations: 20.67 MB / 0.6911 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004065/0.6914, allocations: 2.3 MB / 0.6934 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004123/0.6918, allocations: 226.1 kB / 0.6936 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.919e-05/0.6919, allocations: 60.89 kB / 0.6937 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 5.149e-06/0.6919, allocations: 0 / 0.6937 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.023/0.7149, allocations: 10.88 MB / 0.7043 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.715, allocations: 85.77 kB / 0.7044 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004885/0.7199, allocations: 3.021 MB / 0.7073 GB, free: 9.664 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004327/0.7204, allocations: 69.7 kB / 0.7074 GB, free: 9.59 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001925/0.7223, allocations: 2.867 MB / 0.7102 GB, free: 6.703 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001207/0.7235, allocations: 1.036 MB / 0.7112 GB, free: 5.676 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002091/0.7257, allocations: 0.9055 MB / 0.7121 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.149e-05/0.7258, allocations: 305.1 kB / 0.7124 GB, free: 4.457 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003453/0.7292, allocations: 2.024 MB / 0.7143 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00477/0.734, allocations: 3.732 MB / 0.718 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009088/0.7431, allocations: 6.051 MB / 0.7239 GB, free: 7.051 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.897e-05/0.7433, allocations: 16 kB / 0.7239 GB, free: 7.035 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02061/0.7639, allocations: 6.629 MB / 0.7304 GB, free: 376 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.7641, allocations: 28 kB / 0.7304 GB, free: 348 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001461/0.7643, allocations: 56.22 kB / 0.7305 GB, free: 292 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2412/1.005, allocations: 0.6654 MB / 0.7311 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00441/1.01, allocations: 1.067 MB / 0.7322 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009213/1.019, allocations: 6.219 MB / 0.7382 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004/1.023, allocations: 281.5 kB / 0.7385 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000897/1.024, allocations: 228.8 kB / 0.7387 GB, free: 165.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.0054/1.03, allocations: 2.316 MB / 0.741 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008952/1.03, allocations: 318.8 kB / 0.7413 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009257/1.04, allocations: 4.63 MB / 0.7458 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.461e-05/1.04, allocations: 30.06 kB / 0.7458 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/1.04, allocations: 6.938 kB / 0.7458 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-05/1.04, allocations: 20 kB / 0.7459 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02439/1.064, allocations: 11.09 MB / 0.7567 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.248e-05/1.064, allocations: 5.75 kB / 0.7567 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002712/1.067, allocations: 0.5265 MB / 0.7572 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001812/1.069, allocations: 0.5698 MB / 0.7578 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005192/1.069, allocations: 74.06 kB / 0.7578 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006782/1.076, allocations: 5.449 MB / 0.7632 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/1.076, allocations: 9.312 kB / 0.7632 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01035/1.087, allocations: 6.59 MB / 0.7696 GB, free: 154 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002249/1.089, allocations: 0.7222 MB / 0.7703 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005943/1.09, allocations: 66.19 kB / 0.7704 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/1.091, allocations: 147.9 kB / 0.7705 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003999/1.092, allocations: 206.1 kB / 0.7707 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000167/1.092, allocations: 89.89 kB / 0.7708 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003064/1.095, allocations: 2.022 MB / 0.7728 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.31e-07/1.095, allocations: 0 / 0.7728 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005394/1.1, allocations: 1.166 MB / 0.7739 GB, free: 152.6 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.009327/1.11, allocations: 7.266 MB / 0.781 GB, free: 149 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007887/1.118, allocations: 5.041 MB / 0.7859 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/1.118, allocations: 0 / 0.7859 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003516/1.121, allocations: 2.266 MB / 0.7881 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003584/1.125, allocations: 0.6535 MB / 0.7888 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06089/1.186, allocations: 38.86 MB / 0.8267 GB, free: 102 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005514/1.191, allocations: 4.15 MB / 0.8308 GB, free: 97.84 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00367/1.195, allocations: 1.326 MB / 0.8321 GB, free: 96.51 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003363/1.198, allocations: 2.237 MB / 0.8343 GB, free: 94.27 MB / 0.5294 GB Notification: Performance of SimCode: time 2.204e-06/1.198, allocations: 0 / 0.8343 GB, free: 94.27 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1281/1.327, allocations: 85.8 MB / 0.918 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.2/18.53, allocations: 7.984 kB / 0.9181 GB, free: 8.816 MB / 0.5294 GB (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)