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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000946/0.0009461, 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.298/1.298, allocations: 223.2 MB / 238.9 MB, free: 5.668 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.001047/0.001047, allocations: 185 kB / 290.2 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03213/0.03213, allocations: 8.799 MB / 350.1 MB, free: 4.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003966/0.0003967, allocations: 15.34 kB / 413.2 MB, free: 43.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09502, allocations: 52.55 MB / 465.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02077/0.1158, allocations: 20.39 MB / 486.1 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01634/0.1322, allocations: 7.588 MB / 493.7 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004968/0.1372, allocations: 155.5 kB / 493.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006625/0.1438, allocations: 1.516 MB / 495.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01013/0.154, allocations: 2.721 MB / 498.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005268/0.1593, allocations: 1.25 MB / 499.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01165/0.171, allocations: 6.245 MB / 0.4937 GB, free: 5.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02126/0.1923, allocations: 10.97 MB / 0.5044 GB, free: 10.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004495/0.1968, allocations: 2.558 MB / 0.5069 GB, free: 7.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004897/0.2017, allocations: 2.903 MB / 0.5098 GB, free: 5.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001756/0.2035, allocations: 424 kB / 0.5102 GB, free: 4.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003351/0.2068, allocations: 0.7183 MB / 0.5109 GB, free: 3.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002297/0.2091, allocations: 1.304 MB / 0.5122 GB, free: 2.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002883/0.212, allocations: 1.385 MB / 0.5135 GB, free: 1.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01421/0.2263, allocations: 12.09 MB / 0.5253 GB, free: 5.066 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2263, allocations: 0 / 0.5253 GB, free: 5.066 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.2263, allocations: 0 / 0.5253 GB, free: 5.066 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004812/0.2268, allocations: 0 / 0.5253 GB, free: 5.066 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.2271/0.4539, allocations: 7.4 MB / 0.5325 GB, free: 57.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.454, allocations: 9.656 kB / 0.5326 GB, free: 57.88 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003451/0.4574, allocations: 1.045 MB / 0.5336 GB, free: 57.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02521/0.4826, allocations: 4.301 MB / 0.5378 GB, free: 57.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009782/0.4925, allocations: 4.426 MB / 0.5421 GB, free: 56.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005068/0.493, allocations: 489.8 kB / 0.5426 GB, free: 56.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002652/0.4957, allocations: 0.6339 MB / 0.5432 GB, free: 56.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02379/0.5195, allocations: 10.26 MB / 0.5532 GB, free: 51.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001681/0.5197, allocations: 11.81 kB / 0.5532 GB, free: 51.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008462/0.5206, allocations: 268.7 kB / 0.5535 GB, free: 51.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004722/0.521, allocations: 416.5 kB / 0.5539 GB, free: 50.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01676/0.5378, allocations: 9.825 MB / 0.5635 GB, free: 43.53 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04885/0.5867, allocations: 35.76 MB / 0.5984 GB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0159/0.6026, allocations: 20.62 MB / 0.6185 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004747/0.6032, allocations: 228.2 kB / 0.6187 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.322e-05/0.6032, allocations: 64.89 kB / 0.6188 GB, free: 15.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=295): time 4.719e-06/0.6032, allocations: 0 / 0.6188 GB, free: 15.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=301): time 0.02013/0.6234, allocations: 10.83 MB / 0.6294 GB, free: 4.297 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.6235, allocations: 81.78 kB / 0.6295 GB, free: 4.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004223/0.6277, allocations: 2.99 MB / 0.6324 GB, free: 1.195 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003188/0.628, allocations: 77.7 kB / 0.6324 GB, free: 1.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001803/0.6299, allocations: 2.869 MB / 0.6352 GB, free: 14.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009682/0.6308, allocations: 1.031 MB / 0.6363 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.6311, allocations: 96 kB / 0.6363 GB, free: 13.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002646/0.6313, allocations: 499.9 kB / 0.6368 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002883/0.6342, allocations: 2.023 MB / 0.6388 GB, free: 10.58 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003774/0.638, allocations: 3.692 MB / 0.6424 GB, free: 6.109 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/0.6417, allocations: 2.836 MB / 0.6452 GB, free: 3.258 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.526e-05/0.6417, allocations: 16 kB / 0.6452 GB, free: 3.242 MB / 414.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01009/0.6518, allocations: 6.619 MB / 0.6517 GB, free: 12.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.079e-05/0.6519, allocations: 35.98 kB / 0.6517 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.784e-05/0.652, allocations: 55.98 kB / 0.6517 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001805/0.6539, allocations: 0.6664 MB / 0.6524 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00404/0.6579, allocations: 1.08 MB / 0.6534 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008166/0.6661, allocations: 5.854 MB / 0.6592 GB, free: 4.762 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003877/0.67, allocations: 279.5 kB / 0.6594 GB, free: 4.488 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008134/0.6709, allocations: 228 kB / 0.6596 GB, free: 4.266 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.005043/0.6759, allocations: 2.311 MB / 0.6619 GB, free: 1.941 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001043/0.677, allocations: 328 kB / 0.6622 GB, free: 1.617 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007736/0.6847, allocations: 4.649 MB / 0.6668 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.851e-05/0.6848, allocations: 35.95 kB / 0.6668 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/0.6848, allocations: 11.98 kB / 0.6668 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-05/0.6848, allocations: 11.95 kB / 0.6668 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01851/0.7034, allocations: 11 MB / 0.6776 GB, free: 1.648 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.507e-05/0.7034, allocations: 4 kB / 0.6776 GB, free: 1.645 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002108/0.7055, allocations: 0.5383 MB / 0.6781 GB, free: 1.105 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001579/0.7071, allocations: 0.5793 MB / 0.6787 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002045/0.7073, allocations: 67.92 kB / 0.6787 GB, free: 468 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006824/0.7142, allocations: 5.214 MB / 0.6838 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.7142, allocations: 4 kB / 0.6838 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01063/0.7249, allocations: 7.02 MB / 0.6907 GB, free: 3.746 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002352/0.7273, allocations: 0.7545 MB / 0.6914 GB, free: 2.969 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007294/0.728, allocations: 63.94 kB / 0.6915 GB, free: 2.906 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001771/0.7298, allocations: 143.9 kB / 0.6916 GB, free: 2.766 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004029/0.7302, allocations: 210 kB / 0.6918 GB, free: 2.559 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000166/0.7304, allocations: 91.98 kB / 0.6919 GB, free: 2.469 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003266/0.7337, allocations: 1.985 MB / 0.6938 GB, free: 492 kB / 462.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7337, allocations: 0 / 0.6938 GB, free: 492 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.005376/0.7391, allocations: 1.175 MB / 0.695 GB, free: 15.3 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.01122/0.7503, allocations: 8.737 MB / 0.7035 GB, free: 6.344 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008473/0.7588, allocations: 5.016 MB / 0.7084 GB, free: 1.301 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/0.7589, allocations: 1.875 kB / 0.7084 GB, free: 1.301 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1884/0.9473, allocations: 2.241 MB / 0.7106 GB, free: 166.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003058/0.9504, allocations: 0.5664 MB / 0.7112 GB, free: 166.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07038/1.021, allocations: 69.38 MB / 0.7789 GB, free: 115.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003946/1.025, allocations: 4.256 MB / 0.7831 GB, free: 113.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003718/1.029, allocations: 1.333 MB / 0.7844 GB, free: 113.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002684/1.031, allocations: 2.243 MB / 0.7866 GB, free: 111.6 MB / 478.1 MB Notification: Performance of SimCode: time 8.92e-07/1.031, allocations: 0 / 0.7866 GB, free: 111.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1096/1.141, allocations: 85.74 MB / 0.8703 GB, free: 27.33 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001409/1.141, allocations: 196.8 kB / 0.8705 GB, free: 27.09 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.601/4.742, allocations: 3 kB / 0.8705 GB, free: 27.09 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) Environment - environmentSimulation: