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.0009502/0.0009501, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.337/1.337, allocations: 223.3 MB / 239.4 MB, free: 5.539 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.001072/0.001072, allocations: 172.5 kB / 290.6 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03291/0.03291, allocations: 8.803 MB / 350.5 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003383/0.0003384, allocations: 13.28 kB / 413.9 MB, free: 42.8 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08236/0.08271, allocations: 52.56 MB / 466.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip3): time 0.02337/0.1061, allocations: 23.91 MB / 490.4 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01618/0.1223, allocations: 7.851 MB / 498.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005075/0.1274, allocations: 159.5 kB / 498.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005178/0.1326, allocations: 1.548 MB / 500 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00787/0.1405, allocations: 2.494 MB / 0.4907 GB, free: 8.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003791/0.1443, allocations: 1.323 MB / 0.492 GB, free: 7.613 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009023/0.1534, allocations: 7.362 MB / 0.4992 GB, free: 232 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02272/0.1761, allocations: 13.39 MB / 0.5122 GB, free: 2.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004266/0.1804, allocations: 2.678 MB / 0.5149 GB, free: 20 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004975/0.1854, allocations: 3.311 MB / 0.5181 GB, free: 12.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001447/0.1869, allocations: 428 kB / 0.5185 GB, free: 12.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003016/0.1899, allocations: 0.7924 MB / 0.5193 GB, free: 11.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001931/0.1918, allocations: 1.374 MB / 0.5206 GB, free: 10.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004795/0.1967, allocations: 3.283 MB / 0.5238 GB, free: 6.801 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2041/0.4007, allocations: 13.57 MB / 0.5371 GB, free: 24.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.4008, allocations: 2.438 kB / 0.5371 GB, free: 24.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4008, allocations: 0 / 0.5371 GB, free: 24.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000289/0.4011, allocations: 0 / 0.5371 GB, free: 24.17 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.02014/0.4212, allocations: 7.4 MB / 0.5443 GB, free: 21.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.4213, allocations: 9.625 kB / 0.5443 GB, free: 21.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002911/0.4242, allocations: 1.045 MB / 0.5453 GB, free: 21.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02459/0.4488, allocations: 4.396 MB / 0.5496 GB, free: 19.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01009/0.4589, allocations: 4.529 MB / 0.554 GB, free: 18.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006391/0.4596, allocations: 490.7 kB / 0.5545 GB, free: 18.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003396/0.463, allocations: 0.6322 MB / 0.5551 GB, free: 18.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02038/0.4834, allocations: 10.36 MB / 0.5652 GB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001472/0.4836, allocations: 13.77 kB / 0.5653 GB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007161/0.4843, allocations: 269.7 kB / 0.5655 GB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003082/0.4846, allocations: 412.1 kB / 0.5659 GB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01483/0.4995, allocations: 9.866 MB / 0.5755 GB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05078/0.5503, allocations: 35.8 MB / 0.6105 GB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01864/0.569, allocations: 20.63 MB / 0.6306 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004192/0.5732, allocations: 2.305 MB / 0.6329 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003599/0.5736, allocations: 233.2 kB / 0.6331 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.855e-05/0.5737, allocations: 60.89 kB / 0.6332 GB, free: 13.89 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.039e-06/0.5737, allocations: 0 / 0.6332 GB, free: 13.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02153/0.5952, allocations: 10.9 MB / 0.6438 GB, free: 2.887 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.5953, allocations: 81.78 kB / 0.6439 GB, free: 2.793 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004157/0.5995, allocations: 3.017 MB / 0.6468 GB, free: 15.76 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001704/0.5997, allocations: 77.7 kB / 0.6469 GB, free: 15.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001734/0.6014, allocations: 2.863 MB / 0.6497 GB, free: 12.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007637/0.6022, allocations: 1.038 MB / 0.6507 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004853/0.6027, allocations: 363.8 kB / 0.6511 GB, free: 11.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.618e-05/0.6028, allocations: 305.1 kB / 0.6514 GB, free: 11.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002861/0.6056, allocations: 2.031 MB / 0.6534 GB, free: 9.059 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003986/0.6096, allocations: 3.725 MB / 0.657 GB, free: 4.578 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007475/0.6171, allocations: 6.045 MB / 0.6629 GB, free: 13.96 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.233e-05/0.6172, allocations: 19.94 kB / 0.6629 GB, free: 13.94 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01092/0.6281, allocations: 6.631 MB / 0.6694 GB, free: 7.613 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.771e-05/0.6282, allocations: 28 kB / 0.6694 GB, free: 7.586 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/0.6283, allocations: 59.98 kB / 0.6695 GB, free: 7.527 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001793/0.6301, allocations: 0.672 MB / 0.6701 GB, free: 6.855 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00392/0.634, allocations: 1.061 MB / 0.6712 GB, free: 5.867 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008438/0.6425, allocations: 5.809 MB / 0.6768 GB, free: 15.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003476/0.646, allocations: 275.5 kB / 0.6771 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004136/0.6464, allocations: 232 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.003816/0.6502, allocations: 2.314 MB / 0.6796 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006291/0.6509, allocations: 320.1 kB / 0.6799 GB, free: 12.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00789/0.6588, allocations: 4.629 MB / 0.6844 GB, free: 8.238 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.408e-05/0.6588, allocations: 28 kB / 0.6844 GB, free: 8.211 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.6588, allocations: 11.94 kB / 0.6844 GB, free: 8.199 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.939e-05/0.6589, allocations: 15.94 kB / 0.6845 GB, free: 8.184 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01759/0.6764, allocations: 11.28 MB / 0.6955 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.492e-05/0.6765, allocations: 4 kB / 0.6955 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/0.6786, allocations: 0.526 MB / 0.696 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001627/0.6803, allocations: 0.5644 MB / 0.6965 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/0.6805, allocations: 71.98 kB / 0.6966 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007292/0.6878, allocations: 5.039 MB / 0.7015 GB, free: 6.504 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.6878, allocations: 7.562 kB / 0.7015 GB, free: 6.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1817/0.8695, allocations: 6.58 MB / 0.708 GB, free: 173.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001907/0.8714, allocations: 0.748 MB / 0.7087 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004295/0.8719, allocations: 61.41 kB / 0.7088 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/0.8735, allocations: 155.5 kB / 0.7089 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004238/0.8739, allocations: 206.1 kB / 0.7091 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001697/0.8741, allocations: 94.53 kB / 0.7092 GB, free: 173.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003291/0.8774, allocations: 2.015 MB / 0.7112 GB, free: 173.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.8774, allocations: 0.875 kB / 0.7112 GB, free: 173.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004251/0.8817, allocations: 1.173 MB / 0.7123 GB, free: 173.4 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.009749/0.8914, allocations: 7.258 MB / 0.7194 GB, free: 172.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007731/0.8992, allocations: 5.026 MB / 0.7243 GB, free: 170.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/0.8992, allocations: 1.531 kB / 0.7243 GB, free: 170.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003167/0.9024, allocations: 2.271 MB / 0.7265 GB, free: 169.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004959/0.9074, allocations: 0.6121 MB / 0.7271 GB, free: 169.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07023/0.9776, allocations: 47.19 MB / 0.7732 GB, free: 129.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004035/0.9817, allocations: 4.153 MB / 0.7773 GB, free: 125.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003946/0.9857, allocations: 1.328 MB / 0.7786 GB, free: 124.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003077/0.9888, allocations: 2.249 MB / 0.7807 GB, free: 121.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.202e-06/0.9888, allocations: 0 / 0.7807 GB, free: 121.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1208/1.11, allocations: 86.92 MB / 0.8656 GB, free: 35.28 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001404/1.11, allocations: 220 kB / 0.8658 GB, free: 35.03 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.7/4.81, allocations: 0 / 0.8658 GB, free: 35.03 MB / 494.1 MB (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)