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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 180.4 kB / 15.15 MB, free: 1.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.04984/0.04984, allocations: 8.782 MB / 24.66 MB, free: 172 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 223.2 MB / 250.8 MB, free: 9.438 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009743/0.0009742, allocations: 97.25 kB / 304.1 MB, free: 5.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003963/0.0003964, allocations: 8 kB / 367.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1129, allocations: 52.55 MB / 419.8 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.2389/0.3518, allocations: 22.17 MB / 442 MB, free: 32.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0162/0.368, allocations: 7.384 MB / 449.4 MB, free: 27.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006892/0.375, allocations: 159.4 kB / 449.5 MB, free: 27.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005319/0.3804, allocations: 1.248 MB / 450.8 MB, free: 26.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00859/0.389, allocations: 2.244 MB / 453 MB, free: 25.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004123/0.3931, allocations: 1.033 MB / 454 MB, free: 24.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01304/0.4062, allocations: 8.463 MB / 462.5 MB, free: 21.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02456/0.4308, allocations: 11.11 MB / 473.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006862/0.4377, allocations: 2.756 MB / 476.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00739/0.4451, allocations: 3.221 MB / 479.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003481/0.4487, allocations: 427.7 kB / 480 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007528/0.4562, allocations: 0.7705 MB / 480.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003956/0.4602, allocations: 1.347 MB / 482.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005166/0.4654, allocations: 1.387 MB / 483.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01778/0.4832, allocations: 12.13 MB / 495.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4833, allocations: 1.188 kB / 495.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.4833, allocations: 0 / 495.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005122/0.4838, allocations: 0 / 495.6 MB, free: 6.27 MB / 350.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.02396/0.5078, allocations: 7.457 MB / 0.4913 GB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.5078, allocations: 12.56 kB / 0.4913 GB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00464/0.5125, allocations: 1.044 MB / 0.4923 GB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02531/0.5378, allocations: 4.404 MB / 0.4966 GB, free: 9.938 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0131/0.551, allocations: 4.466 MB / 0.501 GB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004846/0.5515, allocations: 493.1 kB / 0.5015 GB, free: 4.926 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002927/0.5544, allocations: 0.6326 MB / 0.5021 GB, free: 4.293 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02647/0.5809, allocations: 10.31 MB / 0.5122 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001982/0.5812, allocations: 15.91 kB / 0.5122 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001197/0.5824, allocations: 272 kB / 0.5124 GB, free: 9.629 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004156/0.5828, allocations: 413.7 kB / 0.5128 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02195/0.6047, allocations: 9.81 MB / 0.5224 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06837/0.6732, allocations: 35.76 MB / 0.5573 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01806/0.6912, allocations: 20.64 MB / 0.5775 GB, free: 3.141 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003951/0.6953, allocations: 2.297 MB / 0.5797 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003317/0.6956, allocations: 232.5 kB / 0.5799 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.306e-05/0.6957, allocations: 64.89 kB / 0.58 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of pre-optimization done (n=295): time 5.461e-06/0.6957, allocations: 0 / 0.58 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of matching and sorting (n=301): time 0.234/0.9297, allocations: 11.6 MB / 0.5913 GB, free: 115.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/0.9298, allocations: 81.75 kB / 0.5914 GB, free: 115.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00514/0.9349, allocations: 2.998 MB / 0.5943 GB, free: 115.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005283/0.9355, allocations: 70.95 kB / 0.5944 GB, free: 115.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003067/0.9386, allocations: 2.872 MB / 0.5972 GB, free: 113.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002054/0.9407, allocations: 1.031 MB / 0.5982 GB, free: 112.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000687/0.9414, allocations: 94.53 kB / 0.5983 GB, free: 112.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000514/0.9419, allocations: 498.9 kB / 0.5988 GB, free: 112.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003897/0.9458, allocations: 2.006 MB / 0.6007 GB, free: 112.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004629/0.9505, allocations: 3.712 MB / 0.6044 GB, free: 109.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004452/0.955, allocations: 2.818 MB / 0.6071 GB, free: 108.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-05/0.955, allocations: 18.95 kB / 0.6071 GB, free: 108.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01159/0.9667, allocations: 6.586 MB / 0.6136 GB, free: 105.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.829e-05/0.9668, allocations: 29.25 kB / 0.6136 GB, free: 105.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001009/0.9669, allocations: 54.5 kB / 0.6136 GB, free: 105.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/0.9686, allocations: 0.6815 MB / 0.6143 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003726/0.9723, allocations: 1.064 MB / 0.6153 GB, free: 105.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006945/0.9793, allocations: 5.788 MB / 0.621 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003826/0.9831, allocations: 275.6 kB / 0.6213 GB, free: 101.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009669/0.9841, allocations: 230.2 kB / 0.6215 GB, free: 101.7 MB / 446.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 (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%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005281/0.9894, allocations: 2.315 MB / 0.6237 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009644/0.9904, allocations: 317.8 kB / 0.624 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00981/1, allocations: 4.626 MB / 0.6286 GB, free: 98.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.237e-05/1, allocations: 30.84 kB / 0.6286 GB, free: 98.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.981e-05/1, allocations: 6.844 kB / 0.6286 GB, free: 98.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.237e-05/1, allocations: 15.19 kB / 0.6286 GB, free: 98.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02173/1.022, allocations: 11.25 MB / 0.6396 GB, free: 93.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/1.022, allocations: 3.906 kB / 0.6396 GB, free: 93.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001894/1.024, allocations: 0.5263 MB / 0.6401 GB, free: 93.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001339/1.025, allocations: 0.5694 MB / 0.6407 GB, free: 93.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002613/1.026, allocations: 75.11 kB / 0.6407 GB, free: 93.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005584/1.031, allocations: 5.03 MB / 0.6457 GB, free: 89.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.031, allocations: 4.938 kB / 0.6457 GB, free: 89.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008605/1.04, allocations: 6.555 MB / 0.6521 GB, free: 83.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/1.042, allocations: 0.7478 MB / 0.6528 GB, free: 82.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007763/1.043, allocations: 60.86 kB / 0.6529 GB, free: 82.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001797/1.044, allocations: 153 kB / 0.653 GB, free: 82.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003277/1.045, allocations: 214 kB / 0.6532 GB, free: 81.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000168/1.045, allocations: 83.98 kB / 0.6533 GB, free: 81.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003202/1.048, allocations: 1.993 MB / 0.6552 GB, free: 79.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.048, allocations: 0 / 0.6552 GB, free: 79.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005036/1.053, allocations: 1.176 MB / 0.6564 GB, free: 78.73 MB / 446.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 (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,62.5%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008832/1.062, allocations: 7.231 MB / 0.6634 GB, free: 71.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008242/1.07, allocations: 4.991 MB / 0.6683 GB, free: 66.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/1.07, allocations: 0 / 0.6683 GB, free: 66.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003587/1.074, allocations: 2.263 MB / 0.6705 GB, free: 64.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004435/1.079, allocations: 0.6229 MB / 0.6711 GB, free: 63.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07247/1.151, allocations: 32.12 MB / 0.7025 GB, free: 29.56 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006334/1.157, allocations: 4.152 MB / 0.7066 GB, free: 25.37 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004593/1.162, allocations: 1.322 MB / 0.7078 GB, free: 24.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003819/1.166, allocations: 2.245 MB / 0.71 GB, free: 21.84 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/1.166, allocations: 2.297 kB / 0.71 GB, free: 21.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3125/1.478, allocations: 85.87 MB / 0.7939 GB, free: 132.9 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/1.479, allocations: 198.7 kB / 0.7941 GB, free: 132.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.877/5.356, allocations: 0 / 0.7941 GB, free: 132.7 MB / 478.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/linux/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)