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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0009413/0.0009414, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.306/1.306, allocations: 223.2 MB / 238.9 MB, free: 5.555 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.001085/0.001085, allocations: 180 kB / 290.2 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03235/0.03235, allocations: 8.781 MB / 350 MB, free: 4.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003839/0.0003839, allocations: 11.38 kB / 413.2 MB, free: 42.92 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.105, allocations: 52.56 MB / 465.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02094/0.126, allocations: 20.4 MB / 486.1 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0156/0.1417, allocations: 7.595 MB / 493.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005701/0.1474, allocations: 151.5 kB / 493.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00649/0.1539, allocations: 1.52 MB / 495.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00951/0.1635, allocations: 2.71 MB / 498.1 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004893/0.1684, allocations: 1.25 MB / 499.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01117/0.1796, allocations: 6.251 MB / 0.4937 GB, free: 5.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01938/0.199, allocations: 10.97 MB / 0.5045 GB, free: 10.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006463/0.2055, allocations: 2.558 MB / 0.507 GB, free: 7.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005294/0.2109, allocations: 2.903 MB / 0.5098 GB, free: 4.949 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001561/0.2125, allocations: 428 kB / 0.5102 GB, free: 4.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002505/0.215, allocations: 0.7183 MB / 0.5109 GB, free: 3.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001129/0.2161, allocations: 1.304 MB / 0.5122 GB, free: 2.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001735/0.2179, allocations: 1.385 MB / 0.5135 GB, free: 1.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01092/0.2288, allocations: 12.08 MB / 0.5253 GB, free: 4.992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2288, allocations: 0 / 0.5253 GB, free: 4.992 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.2288, allocations: 0 / 0.5253 GB, free: 4.992 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003213/0.2292, allocations: 0 / 0.5253 GB, free: 4.992 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.2067/0.4359, allocations: 7.401 MB / 0.5326 GB, free: 57.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.436, allocations: 11.19 kB / 0.5326 GB, free: 57.94 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003438/0.4394, allocations: 1.042 MB / 0.5336 GB, free: 57.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02521/0.4647, allocations: 4.302 MB / 0.5378 GB, free: 57.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01015/0.4749, allocations: 4.436 MB / 0.5421 GB, free: 56.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005456/0.4754, allocations: 485.9 kB / 0.5426 GB, free: 56.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00264/0.4781, allocations: 0.6257 MB / 0.5432 GB, free: 56.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02055/0.4986, allocations: 10.26 MB / 0.5532 GB, free: 51.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001511/0.4988, allocations: 10.19 kB / 0.5532 GB, free: 51.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007843/0.4996, allocations: 267.7 kB / 0.5535 GB, free: 51.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003739/0.5, allocations: 425.9 kB / 0.5539 GB, free: 50.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01674/0.5168, allocations: 9.82 MB / 0.5635 GB, free: 43.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04577/0.5626, allocations: 35.76 MB / 0.5984 GB, free: 6.742 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.017/0.5796, allocations: 20.63 MB / 0.6185 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004853/0.5802, allocations: 228.6 kB / 0.6188 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.962e-05/0.5802, allocations: 68.89 kB / 0.6188 GB, free: 15.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=295): time 4.639e-06/0.5802, allocations: 0 / 0.6188 GB, free: 15.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=301): time 0.0207/0.601, allocations: 10.83 MB / 0.6294 GB, free: 4.184 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/0.6011, allocations: 81.78 kB / 0.6295 GB, free: 4.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004605/0.6057, allocations: 2.99 MB / 0.6324 GB, free: 1.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004063/0.6061, allocations: 73.7 kB / 0.6325 GB, free: 1.004 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002103/0.6082, allocations: 2.864 MB / 0.6353 GB, free: 14.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00108/0.6093, allocations: 1.03 MB / 0.6363 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.6095, allocations: 96 kB / 0.6364 GB, free: 13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002891/0.6098, allocations: 496.1 kB / 0.6368 GB, free: 12.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003175/0.613, allocations: 2.031 MB / 0.6388 GB, free: 10.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004253/0.6173, allocations: 3.694 MB / 0.6424 GB, free: 6 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003905/0.6212, allocations: 2.84 MB / 0.6452 GB, free: 3.145 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.642e-05/0.6212, allocations: 16 kB / 0.6452 GB, free: 3.129 MB / 414.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01028/0.6315, allocations: 6.608 MB / 0.6517 GB, free: 12.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.302e-05/0.6316, allocations: 28 kB / 0.6517 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001103/0.6317, allocations: 59.95 kB / 0.6518 GB, free: 12.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001881/0.6336, allocations: 0.6782 MB / 0.6524 GB, free: 11.72 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004088/0.6377, allocations: 1.072 MB / 0.6535 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008612/0.6464, allocations: 5.858 MB / 0.6592 GB, free: 4.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004105/0.6505, allocations: 279.4 kB / 0.6595 GB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007617/0.6513, allocations: 232 kB / 0.6597 GB, free: 4.156 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 249 * 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 (562): * Single equations (assignments): 561 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004503/0.6558, allocations: 2.319 MB / 0.6619 GB, free: 1.824 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008311/0.6567, allocations: 316.1 kB / 0.6622 GB, free: 1.512 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007956/0.6646, allocations: 4.653 MB / 0.6668 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-05/0.6647, allocations: 32 kB / 0.6668 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.6647, allocations: 11.95 kB / 0.6668 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.863e-05/0.6647, allocations: 15.94 kB / 0.6668 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01713/0.6819, allocations: 11 MB / 0.6776 GB, free: 1.539 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/0.6819, allocations: 4 kB / 0.6776 GB, free: 1.535 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002085/0.684, allocations: 0.5427 MB / 0.6781 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001613/0.6856, allocations: 0.5671 MB / 0.6787 GB, free: 432 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001983/0.6858, allocations: 71.94 kB / 0.6787 GB, free: 360 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007064/0.6929, allocations: 5.21 MB / 0.6838 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.6929, allocations: 11.94 kB / 0.6838 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01015/0.7031, allocations: 7.019 MB / 0.6907 GB, free: 3.637 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0019/0.705, allocations: 0.7545 MB / 0.6914 GB, free: 2.859 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004311/0.7055, allocations: 59.95 kB / 0.6915 GB, free: 2.801 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001644/0.7071, allocations: 151.9 kB / 0.6916 GB, free: 2.652 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003704/0.7075, allocations: 202 kB / 0.6918 GB, free: 2.453 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001701/0.7077, allocations: 87.98 kB / 0.6919 GB, free: 2.367 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003133/0.7108, allocations: 1.993 MB / 0.6939 GB, free: 380 kB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7108, allocations: 3.938 kB / 0.6939 GB, free: 376 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.004391/0.7152, allocations: 1.175 MB / 0.695 GB, free: 15.19 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,67.2%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01115/0.7264, allocations: 8.729 MB / 0.7035 GB, free: 6.238 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008399/0.7348, allocations: 5.022 MB / 0.7084 GB, free: 1.191 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.447e-06/0.7349, allocations: 0 / 0.7084 GB, free: 1.191 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2215/0.9564, allocations: 2.235 MB / 0.7106 GB, free: 159.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003448/0.9599, allocations: 0.5704 MB / 0.7112 GB, free: 159.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08349/1.043, allocations: 69.39 MB / 0.7789 GB, free: 108.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005534/1.049, allocations: 4.25 MB / 0.7831 GB, free: 106.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00432/1.053, allocations: 1.33 MB / 0.7844 GB, free: 106.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00369/1.057, allocations: 2.246 MB / 0.7866 GB, free: 104.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.673e-06/1.057, allocations: 3.75 kB / 0.7866 GB, free: 104.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1147/1.172, allocations: 85.74 MB / 0.8703 GB, free: 19.72 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001264/1.172, allocations: 193.3 kB / 0.8705 GB, free: 19.48 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.659/4.831, allocations: 3.938 kB / 0.8705 GB, free: 19.48 MB / 478.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/linux/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) Environment - environmentSimulation: