Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",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.0007858/0.0007857, allocations: 91.84 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.353/1.353, allocations: 223.3 MB / 239.4 MB, free: 5.52 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.001141/0.001141, allocations: 187.4 kB / 290.6 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03298/0.03298, allocations: 8.798 MB / 350.5 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003646, allocations: 10.53 kB / 413.9 MB, free: 42.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08582/0.0862, allocations: 52.56 MB / 466.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.0237/0.1099, allocations: 23.92 MB / 490.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0156/0.1256, allocations: 7.851 MB / 498.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004777/0.1304, allocations: 159.6 kB / 498.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005131/0.1355, allocations: 1.548 MB / 500 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0079/0.1435, allocations: 2.498 MB / 0.4907 GB, free: 8.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003763/0.1472, allocations: 1.308 MB / 0.492 GB, free: 7.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009081/0.1563, allocations: 7.37 MB / 0.4992 GB, free: 228 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02224/0.1786, allocations: 13.4 MB / 0.5122 GB, free: 2.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005563/0.1842, allocations: 2.674 MB / 0.5149 GB, free: 12 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006787/0.191, allocations: 3.318 MB / 0.5181 GB, free: 12.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0023/0.1933, allocations: 428 kB / 0.5185 GB, free: 12.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004301/0.1976, allocations: 0.7847 MB / 0.5193 GB, free: 11.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002645/0.2003, allocations: 1.378 MB / 0.5206 GB, free: 10.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005659/0.206, allocations: 3.279 MB / 0.5238 GB, free: 6.793 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2195/0.4255, allocations: 13.57 MB / 0.5371 GB, free: 24.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.4256, allocations: 4.938 kB / 0.5371 GB, free: 24.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.4256, allocations: 0 / 0.5371 GB, free: 24.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003472/0.4259, allocations: 0 / 0.5371 GB, free: 24.14 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.02042/0.4464, allocations: 7.396 MB / 0.5443 GB, free: 21.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.4464, allocations: 10.28 kB / 0.5443 GB, free: 21.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003901/0.4503, allocations: 1.043 MB / 0.5453 GB, free: 21.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02521/0.4756, allocations: 4.402 MB / 0.5496 GB, free: 19.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009937/0.4855, allocations: 4.521 MB / 0.554 GB, free: 18.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003905/0.486, allocations: 491.6 kB / 0.5545 GB, free: 18.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002262/0.4883, allocations: 0.6338 MB / 0.5551 GB, free: 18.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02149/0.5097, allocations: 10.36 MB / 0.5652 GB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001973/0.51, allocations: 14.67 kB / 0.5653 GB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001117/0.5111, allocations: 267 kB / 0.5655 GB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003369/0.5114, allocations: 423.8 kB / 0.5659 GB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01797/0.5294, allocations: 9.862 MB / 0.5755 GB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05003/0.5795, allocations: 35.79 MB / 0.6105 GB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01888/0.5984, allocations: 20.64 MB / 0.6306 GB, free: 492 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004008/0.6024, allocations: 2.306 MB / 0.6329 GB, free: 14.17 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003047/0.6028, allocations: 223.1 kB / 0.6331 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/0.6028, allocations: 64.89 kB / 0.6332 GB, free: 13.85 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.779e-06/0.6028, allocations: 0 / 0.6332 GB, free: 13.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02153/0.6244, allocations: 10.89 MB / 0.6438 GB, free: 2.852 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/0.6245, allocations: 81.78 kB / 0.6439 GB, free: 2.758 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004741/0.6292, allocations: 3.025 MB / 0.6468 GB, free: 15.71 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003132/0.6295, allocations: 73.7 kB / 0.6469 GB, free: 15.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002011/0.6316, allocations: 2.865 MB / 0.6497 GB, free: 12.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001087/0.6326, allocations: 1.035 MB / 0.6507 GB, free: 11.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005313/0.6332, allocations: 367.8 kB / 0.6511 GB, free: 11.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.6333, allocations: 301.1 kB / 0.6514 GB, free: 11.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003185/0.6365, allocations: 2.024 MB / 0.6533 GB, free: 9.027 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004325/0.6408, allocations: 3.732 MB / 0.657 GB, free: 4.539 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007859/0.6487, allocations: 6.048 MB / 0.6629 GB, free: 13.92 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-05/0.6488, allocations: 20 kB / 0.6629 GB, free: 13.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01169/0.6605, allocations: 6.631 MB / 0.6694 GB, free: 7.578 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.372e-05/0.6606, allocations: 28 kB / 0.6694 GB, free: 7.551 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.361e-05/0.6607, allocations: 52 kB / 0.6695 GB, free: 7.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00184/0.6625, allocations: 0.6719 MB / 0.6701 GB, free: 6.824 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003888/0.6664, allocations: 1.07 MB / 0.6712 GB, free: 5.828 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008635/0.6751, allocations: 5.811 MB / 0.6768 GB, free: 15.92 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003843/0.6789, allocations: 275.5 kB / 0.6771 GB, free: 15.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006942/0.6797, allocations: 232 kB / 0.6773 GB, free: 15.43 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.00452/0.6842, allocations: 2.311 MB / 0.6796 GB, free: 13.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008273/0.685, allocations: 320.1 kB / 0.6799 GB, free: 12.86 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008457/0.6935, allocations: 4.633 MB / 0.6844 GB, free: 8.199 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.03e-05/0.6936, allocations: 32 kB / 0.6844 GB, free: 8.168 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.575e-05/0.6936, allocations: 11.94 kB / 0.6844 GB, free: 8.156 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.248e-05/0.6936, allocations: 19.94 kB / 0.6845 GB, free: 8.137 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02/0.7136, allocations: 11.27 MB / 0.6955 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.7137, allocations: 4 kB / 0.6955 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002154/0.7158, allocations: 0.5294 MB / 0.696 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001675/0.7175, allocations: 0.5724 MB / 0.6965 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002585/0.7178, allocations: 63.98 kB / 0.6966 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007255/0.7251, allocations: 5.043 MB / 0.7015 GB, free: 6.469 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/0.7251, allocations: 11.73 kB / 0.7015 GB, free: 6.461 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1982/0.9233, allocations: 6.577 MB / 0.708 GB, free: 173.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00207/0.9254, allocations: 0.7508 MB / 0.7087 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007388/0.9262, allocations: 58.31 kB / 0.7088 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/0.9279, allocations: 144.5 kB / 0.7089 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004161/0.9283, allocations: 213.4 kB / 0.7091 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001745/0.9285, allocations: 87.14 kB / 0.7092 GB, free: 173.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00294/0.9314, allocations: 2.018 MB / 0.7112 GB, free: 173.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9315, allocations: 2.438 kB / 0.7112 GB, free: 173.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004088/0.9356, allocations: 1.176 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.00975/0.9453, allocations: 7.254 MB / 0.7194 GB, free: 172.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007375/0.9527, allocations: 5.025 MB / 0.7243 GB, free: 170.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.9527, allocations: 1.188 kB / 0.7243 GB, free: 170.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003087/0.9558, 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.00462/0.9605, allocations: 0.6143 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.06893/1.029, 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.00348/1.033, allocations: 4.151 MB / 0.7773 GB, free: 125.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00367/1.037, allocations: 1.32 MB / 0.7785 GB, free: 124.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002489/1.039, allocations: 2.245 MB / 0.7807 GB, free: 121.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.122e-06/1.039, allocations: 4 kB / 0.7807 GB, free: 121.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1021/1.141, allocations: 86.92 MB / 0.8656 GB, free: 35.26 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000135/1.141, allocations: 216.8 kB / 0.8658 GB, free: 35 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.617/4.758, allocations: 3.938 kB / 0.8658 GB, free: 35 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)