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.005219/0.005219, allocations: 102.8 kB / 15.73 MB, free: 6 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.41/1.41, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001523/0.001524, allocations: 192.4 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0371/0.0371, allocations: 8.798 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001849, allocations: 83.88 kB / 463.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1068, allocations: 51.57 MB / 0.503 GB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip3): time 0.02707/0.1339, allocations: 25.42 MB / 0.5278 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2297/0.3637, allocations: 7.997 MB / 0.5356 GB, free: 4.277 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005063/0.3688, allocations: 171.4 kB / 0.5358 GB, free: 4.277 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0133/0.3822, allocations: 6.105 MB / 0.5417 GB, free: 3.719 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009078/0.3913, allocations: 2.747 MB / 0.5444 GB, free: 2.957 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005372/0.3967, allocations: 1.62 MB / 0.546 GB, free: 2.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01089/0.4076, allocations: 7.271 MB / 0.5531 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02448/0.4321, allocations: 13.37 MB / 0.5661 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007028/0.4392, allocations: 3.75 MB / 0.5698 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008297/0.4475, allocations: 4.222 MB / 0.5739 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002828/0.4504, allocations: 1.07 MB / 0.575 GB, free: 4.789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00477/0.4552, allocations: 1.435 MB / 0.5764 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003217/0.4584, allocations: 2.137 MB / 0.5785 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008481/0.4669, allocations: 4.12 MB / 0.5825 GB, free: 13.15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0196/0.4866, allocations: 14.44 MB / 0.5966 GB, free: 14.97 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.398e-06/0.4866, allocations: 0 / 0.5966 GB, free: 14.97 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4867, allocations: 0 / 0.5966 GB, free: 14.97 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.00044/0.4871, 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.02834/0.5154, allocations: 8.774 MB / 0.6052 GB, free: 6.184 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.5155, allocations: 12.03 kB / 0.6052 GB, free: 6.172 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003563/0.5191, allocations: 1.042 MB / 0.6062 GB, free: 5.129 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02579/0.5449, allocations: 4.407 MB / 0.6105 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01044/0.5554, allocations: 4.618 MB / 0.615 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004964/0.5559, allocations: 490.1 kB / 0.6155 GB, free: 11.65 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002492/0.5584, allocations: 0.6267 MB / 0.6161 GB, free: 11.03 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02449/0.5829, allocations: 10.36 MB / 0.6262 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002799/0.5833, allocations: 15.89 kB / 0.6262 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001984/0.5853, allocations: 262.5 kB / 0.6265 GB, free: 372 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005141/0.5858, allocations: 417.7 kB / 0.6269 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02083/0.6066, allocations: 9.872 MB / 0.6365 GB, free: 6.062 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06325/0.6699, allocations: 35.32 MB / 0.671 GB, free: 1.746 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01823/0.6882, allocations: 20.66 MB / 0.6912 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003723/0.692, allocations: 2.304 MB / 0.6934 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003533/0.6924, allocations: 227.9 kB / 0.6936 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.67e-05/0.6924, allocations: 64.89 kB / 0.6937 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 6.823e-06/0.6925, allocations: 0 / 0.6937 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02391/0.7164, allocations: 10.87 MB / 0.7043 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.7165, allocations: 85.72 kB / 0.7044 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005462/0.7219, allocations: 3.017 MB / 0.7073 GB, free: 9.672 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005294/0.7225, allocations: 81.7 kB / 0.7074 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002227/0.7248, allocations: 2.863 MB / 0.7102 GB, free: 6.703 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001302/0.7261, allocations: 1.034 MB / 0.7112 GB, free: 5.68 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001882/0.728, allocations: 0.9094 MB / 0.7121 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.7281, allocations: 301.1 kB / 0.7124 GB, free: 4.461 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003525/0.7316, allocations: 2.024 MB / 0.7144 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005657/0.7373, allocations: 3.729 MB / 0.718 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009646/0.747, allocations: 6.051 MB / 0.7239 GB, free: 7.059 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.557e-05/0.7471, allocations: 20 kB / 0.7239 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01608/0.7632, allocations: 6.622 MB / 0.7304 GB, free: 384 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.547e-05/0.7633, allocations: 41.5 kB / 0.7305 GB, free: 344 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001004/0.7635, allocations: 52 kB / 0.7305 GB, free: 292 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2676/1.031, allocations: 0.664 MB / 0.7312 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004057/1.035, allocations: 1.068 MB / 0.7322 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00925/1.044, allocations: 6.225 MB / 0.7383 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004629/1.049, allocations: 278.3 kB / 0.7385 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000995/1.05, allocations: 227.3 kB / 0.7388 GB, free: 166.6 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.00495/1.055, allocations: 2.317 MB / 0.741 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008911/1.056, allocations: 321.7 kB / 0.7413 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009529/1.066, allocations: 4.625 MB / 0.7458 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.504e-05/1.066, allocations: 30.94 kB / 0.7459 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-05/1.066, allocations: 6.766 kB / 0.7459 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.021e-05/1.066, allocations: 16.09 kB / 0.7459 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02228/1.088, allocations: 11.1 MB / 0.7567 GB, free: 161.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.21e-05/1.088, allocations: 5.156 kB / 0.7567 GB, free: 161.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002318/1.09, allocations: 0.5303 MB / 0.7572 GB, free: 161.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/1.092, allocations: 0.5707 MB / 0.7578 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000478/1.093, allocations: 67.41 kB / 0.7579 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006672/1.099, allocations: 5.457 MB / 0.7632 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/1.099, allocations: 7.75 kB / 0.7632 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01064/1.11, allocations: 6.587 MB / 0.7696 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002161/1.112, allocations: 0.7199 MB / 0.7703 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009854/1.113, allocations: 59.56 kB / 0.7704 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002203/1.115, allocations: 147.9 kB / 0.7705 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005578/1.116, allocations: 210.5 kB / 0.7707 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002145/1.116, allocations: 89.53 kB / 0.7708 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003607/1.12, allocations: 2.021 MB / 0.7728 GB, free: 154 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.31e-07/1.12, allocations: 0 / 0.7728 GB, free: 154 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006958/1.127, allocations: 1.168 MB / 0.7739 GB, free: 153.8 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.01237/1.139, allocations: 7.269 MB / 0.781 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009538/1.149, allocations: 5.04 MB / 0.786 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/1.149, allocations: 0 / 0.786 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00419/1.153, allocations: 2.266 MB / 0.7882 GB, free: 145 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004563/1.158, allocations: 0.6401 MB / 0.7888 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0672/1.225, allocations: 38.86 MB / 0.8268 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004545/1.23, allocations: 4.154 MB / 0.8308 GB, free: 99.34 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003762/1.233, allocations: 1.322 MB / 0.8321 GB, free: 98.02 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003423/1.237, allocations: 2.245 MB / 0.8343 GB, free: 95.77 MB / 0.5294 GB Notification: Performance of SimCode: time 1.192e-06/1.237, allocations: 4 kB / 0.8343 GB, free: 95.77 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1399/1.377, allocations: 88.91 MB / 0.9211 GB, free: 7.207 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.49/17.86, allocations: 11.05 kB / 0.9211 GB, free: 7.199 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe 2>&1)