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.0009205/0.0009206, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.318/1.318, allocations: 223.3 MB / 239.4 MB, free: 5.484 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.0009817/0.0009817, allocations: 188.5 kB / 290.6 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03329/0.03329, allocations: 8.801 MB / 350.5 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003545, allocations: 13.05 kB / 413.9 MB, free: 42.76 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0861/0.08647, allocations: 52.57 MB / 466.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02295/0.1095, allocations: 23.92 MB / 490.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01506/0.1246, allocations: 7.855 MB / 498.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004837/0.1294, allocations: 163.5 kB / 498.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004904/0.1344, allocations: 1.536 MB / 500 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007753/0.1421, allocations: 2.494 MB / 0.4907 GB, free: 8.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003539/0.1457, allocations: 1.317 MB / 0.492 GB, free: 7.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009168/0.1549, allocations: 7.365 MB / 0.4992 GB, free: 200 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02257/0.1775, allocations: 13.4 MB / 0.5122 GB, free: 2.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004613/0.1821, allocations: 2.678 MB / 0.5149 GB, free: 15.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005644/0.1878, allocations: 3.314 MB / 0.5181 GB, free: 12.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001721/0.1896, allocations: 428 kB / 0.5185 GB, free: 12.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00295/0.1925, allocations: 0.7886 MB / 0.5193 GB, free: 11.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001464/0.194, allocations: 1.378 MB / 0.5206 GB, free: 10.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00372/0.1977, allocations: 3.283 MB / 0.5238 GB, free: 6.762 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2092/0.407, allocations: 13.57 MB / 0.5371 GB, free: 23.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.407, allocations: 0 / 0.5371 GB, free: 23.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.4071, allocations: 0 / 0.5371 GB, free: 23.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003004/0.4074, allocations: 1 kB / 0.5371 GB, free: 23.99 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.02102/0.4284, allocations: 7.392 MB / 0.5443 GB, free: 21.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.4285, allocations: 9.469 kB / 0.5443 GB, free: 21.24 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004017/0.4325, allocations: 1.042 MB / 0.5453 GB, free: 20.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02576/0.4583, allocations: 4.408 MB / 0.5496 GB, free: 19.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008908/0.4672, allocations: 4.522 MB / 0.554 GB, free: 17.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003596/0.4676, allocations: 487.6 kB / 0.5545 GB, free: 17.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00184/0.4694, allocations: 0.6313 MB / 0.5551 GB, free: 17.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01783/0.4873, allocations: 10.36 MB / 0.5652 GB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001551/0.4874, allocations: 13.75 kB / 0.5653 GB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008527/0.4883, allocations: 267.5 kB / 0.5655 GB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003208/0.4886, allocations: 413.5 kB / 0.5659 GB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01644/0.5051, allocations: 9.869 MB / 0.5755 GB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04763/0.5527, allocations: 35.79 MB / 0.6105 GB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01786/0.5706, allocations: 20.64 MB / 0.6307 GB, free: 464 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003721/0.5744, allocations: 2.31 MB / 0.6329 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002623/0.5747, allocations: 228.2 kB / 0.6331 GB, free: 13.89 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/0.5747, allocations: 70.91 kB / 0.6332 GB, free: 13.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.158e-06/0.5748, allocations: 0 / 0.6332 GB, free: 13.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02148/0.5962, allocations: 10.89 MB / 0.6438 GB, free: 2.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.5963, allocations: 81.78 kB / 0.6439 GB, free: 2.727 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005557/0.6019, allocations: 3.026 MB / 0.6469 GB, free: 15.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005029/0.6024, allocations: 69.7 kB / 0.6469 GB, free: 15.61 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00267/0.6051, allocations: 2.865 MB / 0.6497 GB, free: 12.72 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001495/0.6066, allocations: 1.034 MB / 0.6507 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007018/0.6073, allocations: 371.8 kB / 0.6511 GB, free: 11.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002538/0.6076, allocations: 301.1 kB / 0.6514 GB, free: 11.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003719/0.6113, allocations: 2.024 MB / 0.6534 GB, free: 8.992 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005766/0.6171, allocations: 3.729 MB / 0.657 GB, free: 4.504 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/0.6275, allocations: 6.042 MB / 0.6629 GB, free: 13.89 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-05/0.6276, allocations: 16 kB / 0.6629 GB, free: 13.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01402/0.6417, allocations: 6.625 MB / 0.6694 GB, free: 7.559 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.686e-05/0.6418, allocations: 35.94 kB / 0.6694 GB, free: 7.523 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001268/0.6419, allocations: 52 kB / 0.6695 GB, free: 7.473 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002036/0.644, allocations: 0.6721 MB / 0.6701 GB, free: 6.797 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004161/0.6482, allocations: 1.067 MB / 0.6712 GB, free: 5.805 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009271/0.6575, allocations: 5.808 MB / 0.6768 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004735/0.6622, allocations: 275.5 kB / 0.6771 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007231/0.663, allocations: 228 kB / 0.6773 GB, free: 15.41 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.004874/0.6679, allocations: 2.318 MB / 0.6796 GB, free: 13.16 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008278/0.6687, allocations: 324 kB / 0.6799 GB, free: 12.84 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008216/0.6769, allocations: 4.628 MB / 0.6844 GB, free: 8.18 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/0.677, allocations: 32 kB / 0.6844 GB, free: 8.148 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/0.677, allocations: 7.938 kB / 0.6844 GB, free: 8.141 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.938e-05/0.677, allocations: 19.94 kB / 0.6845 GB, free: 8.121 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01838/0.6954, allocations: 11.28 MB / 0.6955 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/0.6955, allocations: 4 kB / 0.6955 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00205/0.6975, allocations: 0.5286 MB / 0.696 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001588/0.6991, allocations: 0.5688 MB / 0.6966 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001931/0.6993, allocations: 67.98 kB / 0.6966 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006939/0.7063, allocations: 5.04 MB / 0.7015 GB, free: 6.438 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/0.7063, allocations: 7.281 kB / 0.7015 GB, free: 6.434 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1847/0.891, allocations: 6.576 MB / 0.708 GB, free: 173.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002081/0.8931, allocations: 0.7502 MB / 0.7087 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005888/0.8937, allocations: 62.98 kB / 0.7088 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001727/0.8954, allocations: 144 kB / 0.7089 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004148/0.8958, allocations: 212.8 kB / 0.7091 GB, free: 173.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001791/0.896, allocations: 92.28 kB / 0.7092 GB, free: 173.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003141/0.8992, allocations: 2.014 MB / 0.7112 GB, free: 173.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.8992, allocations: 0 / 0.7112 GB, free: 173.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004042/0.9032, allocations: 1.175 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.0103/0.9136, allocations: 7.26 MB / 0.7194 GB, free: 172.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007869/0.9215, allocations: 5.027 MB / 0.7243 GB, free: 170.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.9215, allocations: 0 / 0.7243 GB, free: 170.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003437/0.9249, allocations: 2.269 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.004956/0.9299, allocations: 0.6137 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.06692/0.9969, 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.002967/0.9999, allocations: 4.157 MB / 0.7773 GB, free: 125.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003395/1.003, allocations: 1.321 MB / 0.7785 GB, free: 124.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002241/1.006, allocations: 2.249 MB / 0.7807 GB, free: 121.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.002e-06/1.006, allocations: 3.609 kB / 0.7807 GB, free: 121.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1017/1.107, allocations: 86.92 MB / 0.8656 GB, free: 35.23 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/1.107, allocations: 214 kB / 0.8658 GB, free: 34.98 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.401/4.508, allocations: 4.062 kB / 0.8658 GB, free: 34.98 MB / 494.1 MB (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)