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.0008856/0.0008856, allocations: 99.38 kB / 15.37 MB, free: 0.707 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.304/1.304, allocations: 223.3 MB / 239.4 MB, free: 5.504 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.001073/0.001073, allocations: 188.3 kB / 290.6 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03288/0.03288, allocations: 8.795 MB / 350.5 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003775/0.0003775, allocations: 11.59 kB / 413.9 MB, free: 42.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08764/0.08804, allocations: 52.56 MB / 466.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02282/0.1109, allocations: 23.9 MB / 490.4 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01613/0.1271, allocations: 7.851 MB / 498.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005222/0.1323, allocations: 163.5 kB / 498.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004864/0.1372, allocations: 1.544 MB / 499.9 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008448/0.1457, allocations: 2.509 MB / 0.4907 GB, free: 8.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004737/0.1505, allocations: 1.305 MB / 0.492 GB, free: 7.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.1608, allocations: 7.362 MB / 0.4991 GB, free: 244 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02356/0.1844, allocations: 13.4 MB / 0.5122 GB, free: 2.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004663/0.1891, allocations: 2.674 MB / 0.5148 GB, free: 32 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005426/0.1945, allocations: 3.322 MB / 0.5181 GB, free: 12.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001727/0.1963, allocations: 428 kB / 0.5185 GB, free: 12.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003064/0.1994, allocations: 0.7846 MB / 0.5193 GB, free: 11.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002246/0.2017, allocations: 1.37 MB / 0.5206 GB, free: 10.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006142/0.2078, allocations: 3.283 MB / 0.5238 GB, free: 6.812 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2003/0.4081, allocations: 13.58 MB / 0.5371 GB, free: 24.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4082, allocations: 3.844 kB / 0.5371 GB, free: 24.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.624e-06/0.4082, allocations: 3.438 kB / 0.5371 GB, free: 24.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003535/0.4086, allocations: 0 / 0.5371 GB, free: 24.09 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.02079/0.4294, allocations: 7.389 MB / 0.5443 GB, free: 21.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.4294, allocations: 9.625 kB / 0.5443 GB, free: 21.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00359/0.433, allocations: 1.044 MB / 0.5453 GB, free: 21.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02551/0.4586, allocations: 4.406 MB / 0.5496 GB, free: 19.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009471/0.4681, allocations: 4.522 MB / 0.554 GB, free: 18.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003772/0.4685, allocations: 492.2 kB / 0.5545 GB, free: 18.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002089/0.4706, allocations: 0.6301 MB / 0.5551 GB, free: 18.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0198/0.4904, allocations: 10.36 MB / 0.5652 GB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001804/0.4906, allocations: 11.38 kB / 0.5652 GB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009439/0.4916, allocations: 266.6 kB / 0.5655 GB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003109/0.4919, allocations: 418.7 kB / 0.5659 GB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01843/0.5103, allocations: 9.863 MB / 0.5755 GB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06305/0.5734, allocations: 35.79 MB / 0.6105 GB, free: 7.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0191/0.5925, allocations: 20.64 MB / 0.6306 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003955/0.5965, allocations: 2.304 MB / 0.6329 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003751/0.5969, allocations: 221.7 kB / 0.6331 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.766e-05/0.597, allocations: 72.17 kB / 0.6332 GB, free: 13.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.448e-06/0.597, allocations: 0 / 0.6332 GB, free: 13.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02187/0.6189, allocations: 10.89 MB / 0.6438 GB, free: 2.871 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.619, allocations: 81.78 kB / 0.6439 GB, free: 2.777 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005214/0.6242, allocations: 3.022 MB / 0.6468 GB, free: 15.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003243/0.6245, allocations: 73.7 kB / 0.6469 GB, free: 15.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001871/0.6264, allocations: 2.869 MB / 0.6497 GB, free: 12.78 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001001/0.6274, allocations: 1.032 MB / 0.6507 GB, free: 11.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006501/0.6281, allocations: 371.8 kB / 0.6511 GB, free: 11.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.6282, allocations: 311.5 kB / 0.6514 GB, free: 11.08 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003336/0.6316, allocations: 2.023 MB / 0.6533 GB, free: 9.047 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004683/0.6363, allocations: 3.732 MB / 0.657 GB, free: 4.555 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008935/0.6452, allocations: 6.05 MB / 0.6629 GB, free: 13.93 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.342e-05/0.6453, allocations: 16 kB / 0.6629 GB, free: 13.92 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01272/0.658, allocations: 6.612 MB / 0.6694 GB, free: 7.609 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.779e-05/0.6581, allocations: 32 kB / 0.6694 GB, free: 7.578 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/0.6582, allocations: 52 kB / 0.6694 GB, free: 7.527 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001898/0.6601, allocations: 0.6752 MB / 0.6701 GB, free: 6.852 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003924/0.6641, allocations: 1.068 MB / 0.6711 GB, free: 5.859 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008955/0.6731, allocations: 5.803 MB / 0.6768 GB, free: 15.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003901/0.677, allocations: 275.5 kB / 0.6771 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006944/0.6777, allocations: 228 kB / 0.6773 GB, free: 15.47 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.004704/0.6824, allocations: 2.316 MB / 0.6796 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008578/0.6833, allocations: 328.1 kB / 0.6799 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009328/0.6926, allocations: 4.631 MB / 0.6844 GB, free: 8.227 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.977e-05/0.6927, allocations: 32 kB / 0.6844 GB, free: 8.195 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.715e-05/0.6927, allocations: 7.938 kB / 0.6844 GB, free: 8.188 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.675e-05/0.6928, allocations: 21.58 kB / 0.6845 GB, free: 8.168 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02483/0.7176, allocations: 11.27 MB / 0.6955 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/0.7176, allocations: 15.66 kB / 0.6955 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002188/0.7198, allocations: 0.5231 MB / 0.696 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001668/0.7215, allocations: 0.5685 MB / 0.6965 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002956/0.7218, allocations: 67.98 kB / 0.6966 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007625/0.7295, allocations: 5.05 MB / 0.7015 GB, free: 6.484 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/0.7295, allocations: 4 kB / 0.7015 GB, free: 6.48 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.234/0.9635, allocations: 6.578 MB / 0.708 GB, free: 173.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002042/0.9656, allocations: 0.7481 MB / 0.7087 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005975/0.9662, allocations: 61.97 kB / 0.7087 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001747/0.968, allocations: 147.4 kB / 0.7089 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004252/0.9684, allocations: 213 kB / 0.7091 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000188/0.9686, allocations: 92.34 kB / 0.7092 GB, free: 173.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00327/0.9719, allocations: 2.016 MB / 0.7111 GB, free: 173.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.9719, allocations: 0 / 0.7111 GB, free: 173.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004204/0.9761, allocations: 1.173 MB / 0.7123 GB, free: 173.3 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.009778/0.9859, allocations: 7.259 MB / 0.7194 GB, free: 172.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007505/0.9934, allocations: 5.023 MB / 0.7243 GB, free: 170.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.9935, allocations: 0 / 0.7243 GB, free: 170.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003065/0.9965, allocations: 2.275 MB / 0.7265 GB, free: 169.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004641/1.001, allocations: 0.6197 MB / 0.7271 GB, free: 169.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06434/1.066, allocations: 47.18 MB / 0.7732 GB, free: 129.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00373/1.069, allocations: 4.149 MB / 0.7772 GB, free: 125.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003592/1.073, allocations: 1.328 MB / 0.7785 GB, free: 124.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002257/1.075, allocations: 2.245 MB / 0.7807 GB, free: 121.9 MB / 494.1 MB Notification: Performance of SimCode: time 6.72e-07/1.075, allocations: 3.938 kB / 0.7807 GB, free: 121.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1058/1.181, allocations: 86.93 MB / 0.8656 GB, free: 35.28 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/1.181, allocations: 213.2 kB / 0.8658 GB, free: 35.03 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.64/4.822, allocations: 0 / 0.8658 GB, free: 35.03 MB / 494.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/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)