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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 113 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.456/1.456, allocations: 230.6 MB / 252.6 MB, free: 8.328 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 210.6 kB / 309.2 MB, free: 3.176 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04383/0.04383, allocations: 8.913 MB / 374.6 MB, free: 1.934 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002907/0.002907, allocations: 83.88 kB / 0.4893 GB, free: 7.336 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2919, allocations: 55.6 MB / 0.5435 GB, free: 26.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.0204/0.3123, allocations: 25.65 MB / 0.5686 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01588/0.3282, allocations: 8.16 MB / 0.5766 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005273/0.3335, allocations: 204.8 kB / 0.5768 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0146/0.3481, allocations: 6.194 MB / 0.5828 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01208/0.3601, allocations: 2.864 MB / 0.5856 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006062/0.3662, allocations: 1.668 MB / 0.5872 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01156/0.3778, allocations: 7.402 MB / 0.5945 GB, free: 7.137 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01876/0.3965, allocations: 9.128 MB / 0.6034 GB, free: 15.67 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007797/0.4043, allocations: 3.845 MB / 0.6071 GB, free: 11.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007779/0.4121, allocations: 4.31 MB / 0.6113 GB, free: 7.492 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003213/0.4153, allocations: 1.07 MB / 0.6124 GB, free: 6.422 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004991/0.4203, allocations: 1.464 MB / 0.6138 GB, free: 4.957 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003998/0.4243, allocations: 2.147 MB / 0.6159 GB, free: 2.805 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01033/0.4346, allocations: 4.121 MB / 0.6199 GB, free: 14.66 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0225/0.4571, allocations: 14.5 MB / 0.6341 GB, free: 128 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.079e-05/0.4571, allocations: 4 kB / 0.6341 GB, free: 124 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.4571, allocations: 0 / 0.6341 GB, free: 124 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004251/0.4576, allocations: 0 / 0.6341 GB, free: 124 kB / 430.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.03035/0.4879, allocations: 8.904 MB / 0.6428 GB, free: 7.141 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.488, allocations: 15.97 kB / 0.6428 GB, free: 7.125 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004017/0.492, allocations: 1.037 MB / 0.6438 GB, free: 6.078 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02676/0.5187, allocations: 4.417 MB / 0.6481 GB, free: 1.652 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/0.5314, allocations: 4.633 MB / 0.6527 GB, free: 12.96 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006064/0.532, allocations: 485.1 kB / 0.6531 GB, free: 12.49 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00268/0.5347, allocations: 0.6249 MB / 0.6537 GB, free: 11.86 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02832/0.563, allocations: 10.39 MB / 0.6639 GB, free: 1.402 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003109/0.5633, allocations: 11.94 kB / 0.6639 GB, free: 1.391 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002054/0.5653, allocations: 272 kB / 0.6641 GB, free: 1.125 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005357/0.5659, allocations: 417.7 kB / 0.6645 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02357/0.5895, allocations: 9.899 MB / 0.6742 GB, free: 6.801 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3011/0.8906, allocations: 33.52 MB / 0.7069 GB, free: 96.83 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01299/0.9036, allocations: 6.786 MB / 0.7136 GB, free: 96.62 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003739/0.9073, allocations: 2.106 MB / 0.7156 GB, free: 96.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004052/0.9077, allocations: 98.66 kB / 0.7157 GB, free: 96.59 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.67e-05/0.9078, allocations: 65.47 kB / 0.7158 GB, free: 96.54 MB / 494.1 MB Notification: Performance of pre-optimization done (n=295): time 7.103e-06/0.9078, allocations: 0 / 0.7158 GB, free: 96.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=301): time 0.02469/0.9325, allocations: 10.81 MB / 0.7263 GB, free: 92.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.9325, allocations: 84.28 kB / 0.7264 GB, free: 92.34 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006366/0.9389, allocations: 3.033 MB / 0.7294 GB, free: 91.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003988/0.9393, allocations: 75.95 kB / 0.7295 GB, free: 91.13 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001877/0.9412, allocations: 2.973 MB / 0.7324 GB, free: 89.26 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0013/0.9425, allocations: 1.078 MB / 0.7334 GB, free: 88.42 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002432/0.9449, allocations: 0.9228 MB / 0.7343 GB, free: 87.98 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.14e-05/0.945, allocations: 309.1 kB / 0.7346 GB, free: 87.68 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003324/0.9483, allocations: 2.03 MB / 0.7366 GB, free: 86.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004563/0.9529, allocations: 3.735 MB / 0.7402 GB, free: 83.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007424/0.9603, allocations: 6.054 MB / 0.7462 GB, free: 79.67 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.665e-05/0.9604, allocations: 15.69 kB / 0.7462 GB, free: 79.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0117/0.9721, allocations: 6.649 MB / 0.7527 GB, free: 76.98 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.842e-05/0.9721, allocations: 29.81 kB / 0.7527 GB, free: 76.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.609e-05/0.9722, allocations: 56.62 kB / 0.7527 GB, free: 76.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001846/0.9741, allocations: 0.668 MB / 0.7534 GB, free: 76.85 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003927/0.978, allocations: 1.075 MB / 0.7544 GB, free: 76.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008728/0.9867, allocations: 6.139 MB / 0.7604 GB, free: 72.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004324/0.9911, allocations: 281.3 kB / 0.7607 GB, free: 72.42 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008896/0.9919, allocations: 234.2 kB / 0.7609 GB, free: 72.37 MB / 494.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.004408/0.9964, allocations: 2.317 MB / 0.7632 GB, free: 70.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/0.9975, allocations: 341.8 kB / 0.7635 GB, free: 70.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008078/1.006, allocations: 4.597 MB / 0.768 GB, free: 67.24 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.302e-05/1.006, allocations: 32 kB / 0.768 GB, free: 67.21 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.782e-05/1.006, allocations: 11.94 kB / 0.7681 GB, free: 67.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-05/1.006, allocations: 15.94 kB / 0.7681 GB, free: 67.18 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02075/1.026, allocations: 11.1 MB / 0.7789 GB, free: 55.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.133e-05/1.026, allocations: 4 kB / 0.7789 GB, free: 55.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002215/1.029, allocations: 0.5344 MB / 0.7794 GB, free: 55.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001639/1.03, allocations: 0.5655 MB / 0.78 GB, free: 54.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003717/1.031, allocations: 71.98 kB / 0.7801 GB, free: 54.81 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006321/1.037, allocations: 5.35 MB / 0.7853 GB, free: 49.35 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/1.037, allocations: 8 kB / 0.7853 GB, free: 49.34 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009484/1.046, allocations: 6.589 MB / 0.7917 GB, free: 42.59 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001984/1.048, allocations: 0.681 MB / 0.7924 GB, free: 41.91 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008877/1.049, allocations: 56 kB / 0.7924 GB, free: 41.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002073/1.051, allocations: 147.9 kB / 0.7926 GB, free: 41.71 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004019/1.052, allocations: 217.8 kB / 0.7928 GB, free: 41.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001996/1.052, allocations: 87.98 kB / 0.7929 GB, free: 41.41 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003087/1.055, allocations: 2.021 MB / 0.7948 GB, free: 39.39 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.055, allocations: 4 kB / 0.7949 GB, free: 39.38 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004641/1.06, allocations: 1.18 MB / 0.796 GB, free: 38.2 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.009541/1.069, allocations: 7.276 MB / 0.8031 GB, free: 30.76 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008661/1.078, allocations: 4.834 MB / 0.8078 GB, free: 25.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/1.078, allocations: 4 kB / 0.8078 GB, free: 25.89 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003837/1.082, allocations: 2.111 MB / 0.8099 GB, free: 23.77 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004573/1.086, allocations: 0.652 MB / 0.8105 GB, free: 23.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07843/1.165, allocations: 39.08 MB / 0.8487 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008041/1.173, allocations: 4.158 MB / 0.8528 GB, free: 9.852 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004932/1.178, allocations: 1.318 MB / 0.854 GB, free: 8.531 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004517/1.182, allocations: 2.26 MB / 0.8562 GB, free: 6.27 MB / 0.5137 GB Notification: Performance of SimCode: time 1.432e-06/1.182, allocations: 0 / 0.8562 GB, free: 6.27 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4169/1.599, allocations: 93.58 MB / 0.9476 GB, free: 170.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.91/21.51, allocations: 0 / 0.9476 GB, free: 170.6 MB / 0.5606 GB " [Timeout remaining time 638] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 28.726012678118423] Failed to read output from testmodel.py, exit status != 0: 21.679860069183633 21.702490593 21.240270603 Calling exit ...