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-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_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.008617/0.008617, allocations: 97.88 kB / 15.73 MB, free: 6.004 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.418/1.419, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001459/0.001459, allocations: 180.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03565/0.03565, allocations: 8.806 MB / 348.7 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002435/0.002435, allocations: 83.86 kB / 463.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09924/0.1017, allocations: 51.57 MB / 0.5029 GB, free: 9.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.03008/0.1318, allocations: 25.4 MB / 0.5277 GB, free: 432 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2084/0.3402, allocations: 8.006 MB / 0.5356 GB, free: 4.359 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005691/0.346, allocations: 173.2 kB / 0.5357 GB, free: 4.359 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01333/0.3594, allocations: 6.108 MB / 0.5417 GB, free: 3.797 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00898/0.3684, allocations: 2.735 MB / 0.5444 GB, free: 3.043 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004746/0.3732, allocations: 1.615 MB / 0.5459 GB, free: 2.879 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01071/0.3839, allocations: 7.28 MB / 0.5531 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02115/0.4051, allocations: 13.43 MB / 0.5662 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006906/0.412, allocations: 3.732 MB / 0.5698 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008405/0.4205, allocations: 4.221 MB / 0.5739 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003046/0.4236, allocations: 1.074 MB / 0.575 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005212/0.4288, allocations: 1.438 MB / 0.5764 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003384/0.4322, allocations: 2.135 MB / 0.5785 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00739/0.4397, allocations: 4.114 MB / 0.5825 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01899/0.4587, allocations: 14.48 MB / 0.5966 GB, free: 15.2 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.4587, allocations: 0 / 0.5966 GB, free: 15.2 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4587, allocations: 0 / 0.5966 GB, free: 15.2 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004213/0.4592, allocations: 4 kB / 0.5966 GB, free: 15.2 MB / 414.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.02601/0.4852, allocations: 8.921 MB / 0.6053 GB, free: 6.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.4852, allocations: 12.03 kB / 0.6054 GB, free: 6.238 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002957/0.4882, allocations: 1.047 MB / 0.6064 GB, free: 5.191 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02505/0.5133, allocations: 4.432 MB / 0.6107 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01073/0.5241, allocations: 4.649 MB / 0.6152 GB, free: 12.13 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005583/0.5247, allocations: 487.4 kB / 0.6157 GB, free: 11.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00266/0.5273, allocations: 0.6254 MB / 0.6163 GB, free: 11.04 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02466/0.552, allocations: 10.36 MB / 0.6264 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002292/0.5523, allocations: 19.92 kB / 0.6265 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001601/0.5539, allocations: 267.1 kB / 0.6267 GB, free: 380 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004829/0.5544, allocations: 417.7 kB / 0.6271 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02127/0.5757, allocations: 9.868 MB / 0.6367 GB, free: 6.074 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06049/0.6362, allocations: 35.4 MB / 0.6713 GB, free: 1.684 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02117/0.6574, allocations: 20.66 MB / 0.6915 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004047/0.6615, allocations: 2.308 MB / 0.6937 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004011/0.662, allocations: 223.6 kB / 0.694 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.834e-05/0.662, allocations: 64.89 kB / 0.694 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 4.518e-06/0.6621, allocations: 0 / 0.694 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02261/0.6847, allocations: 10.95 MB / 0.7047 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.6848, allocations: 81.78 kB / 0.7048 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004608/0.6894, allocations: 3.025 MB / 0.7077 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004075/0.6898, allocations: 77.7 kB / 0.7078 GB, free: 9.449 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002215/0.692, allocations: 2.967 MB / 0.7107 GB, free: 6.477 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001204/0.6933, allocations: 1.091 MB / 0.7118 GB, free: 5.398 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001525/0.6948, allocations: 0.9099 MB / 0.7127 GB, free: 4.477 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.6949, allocations: 301.1 kB / 0.713 GB, free: 4.18 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003284/0.6982, allocations: 2.024 MB / 0.7149 GB, free: 2.148 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004926/0.7032, allocations: 3.724 MB / 0.7186 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008827/0.712, allocations: 6.051 MB / 0.7245 GB, free: 6.781 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-05/0.7121, allocations: 16 kB / 0.7245 GB, free: 6.766 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01299/0.7251, allocations: 6.65 MB / 0.731 GB, free: 80 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.702e-05/0.7252, allocations: 33.19 kB / 0.731 GB, free: 48 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1938/0.9191, allocations: 52.52 kB / 0.7311 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001947/0.9211, allocations: 0.6677 MB / 0.7317 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003867/0.925, allocations: 1.071 MB / 0.7328 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007989/0.933, allocations: 6.224 MB / 0.7389 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003495/0.9365, allocations: 277.8 kB / 0.7391 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006924/0.9372, allocations: 231.9 kB / 0.7393 GB, free: 165.3 MB / 0.5294 GB 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.003863/0.9411, allocations: 2.315 MB / 0.7416 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007674/0.9419, allocations: 336.6 kB / 0.7419 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008035/0.9499, allocations: 4.637 MB / 0.7464 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.32e-05/0.95, allocations: 31.38 kB / 0.7465 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.602e-05/0.95, allocations: 5.812 kB / 0.7465 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.693e-05/0.9501, allocations: 16.22 kB / 0.7465 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02006/0.9701, allocations: 11.1 MB / 0.7573 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/0.9702, allocations: 5.875 kB / 0.7573 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002132/0.9723, allocations: 0.5272 MB / 0.7579 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001559/0.9739, allocations: 0.5668 MB / 0.7584 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003329/0.9743, allocations: 71.52 kB / 0.7585 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006135/0.9804, allocations: 5.458 MB / 0.7638 GB, free: 156.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.9805, allocations: 11.41 kB / 0.7638 GB, free: 156.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008876/0.9893, allocations: 6.592 MB / 0.7703 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/0.9911, allocations: 0.7472 MB / 0.771 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006481/0.9917, allocations: 59.59 kB / 0.771 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001773/0.9935, allocations: 144 kB / 0.7712 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004475/0.994, allocations: 211.4 kB / 0.7714 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001929/0.9942, allocations: 86.2 kB / 0.7715 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00293/0.9971, allocations: 2.02 MB / 0.7734 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.7e-07/0.9972, allocations: 0 / 0.7734 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004518/1.002, allocations: 1.183 MB / 0.7746 GB, free: 152.3 MB / 0.5294 GB 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.009328/1.011, allocations: 7.282 MB / 0.7817 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007148/1.018, allocations: 5.041 MB / 0.7866 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.018, allocations: 448 / 0.7866 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003202/1.021, allocations: 2.267 MB / 0.7888 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00323/1.025, allocations: 0.653 MB / 0.7895 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05209/1.077, allocations: 39.05 MB / 0.8276 GB, free: 101.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004114/1.081, allocations: 4.15 MB / 0.8317 GB, free: 97.05 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003306/1.084, allocations: 1.322 MB / 0.833 GB, free: 95.73 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003128/1.088, allocations: 2.249 MB / 0.8352 GB, free: 93.48 MB / 0.5294 GB Notification: Performance of SimCode: time 9.32e-07/1.088, allocations: 0 / 0.8352 GB, free: 93.48 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1233/1.211, allocations: 88.43 MB / 0.9215 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.39/17.6, allocations: 7.984 kB / 0.9215 GB, free: 5.383 MB / 0.5294 GB (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/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)