Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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.001699/0.001699, allocations: 114.3 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.488/1.488, allocations: 230.6 MB / 252.6 MB, free: 8.305 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.001924/0.001924, allocations: 216.7 kB / 309.2 MB, free: 3.145 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.04311/0.04311, allocations: 8.925 MB / 374.6 MB, free: 1.906 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_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",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.002614/0.002614, allocations: 83.86 kB / 0.4892 GB, free: 7.312 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2714, allocations: 55.61 MB / 0.5436 GB, free: 26.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02078/0.2921, allocations: 25.64 MB / 0.5686 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01649/0.3086, allocations: 8.158 MB / 0.5766 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006403/0.315, allocations: 204.1 kB / 0.5768 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01499/0.33, allocations: 6.197 MB / 0.5828 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009483/0.3395, allocations: 2.863 MB / 0.5856 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005031/0.3445, allocations: 1.67 MB / 0.5872 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01172/0.3563, allocations: 7.407 MB / 0.5945 GB, free: 7.105 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01644/0.3727, allocations: 9.121 MB / 0.6034 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007171/0.3799, allocations: 3.841 MB / 0.6071 GB, free: 11.8 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008396/0.3883, allocations: 4.31 MB / 0.6113 GB, free: 7.477 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003812/0.3921, allocations: 1.07 MB / 0.6124 GB, free: 6.406 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00641/0.3985, allocations: 1.464 MB / 0.6138 GB, free: 4.941 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00423/0.4027, allocations: 2.155 MB / 0.6159 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008423/0.4111, allocations: 4.117 MB / 0.6199 GB, free: 14.64 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02001/0.4312, allocations: 14.5 MB / 0.6341 GB, free: 100 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.4312, allocations: 0 / 0.6341 GB, free: 100 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4312, allocations: 4 kB / 0.6341 GB, free: 96 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000319/0.4315, allocations: 0 / 0.6341 GB, free: 96 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.02822/0.4597, allocations: 8.901 MB / 0.6428 GB, free: 7.117 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.148e-05/0.4598, allocations: 8.031 kB / 0.6428 GB, free: 7.109 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003967/0.4637, allocations: 1.044 MB / 0.6438 GB, free: 6.055 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02542/0.4892, allocations: 4.421 MB / 0.6481 GB, free: 1.625 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01118/0.5003, allocations: 4.625 MB / 0.6526 GB, free: 12.94 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005289/0.5009, allocations: 0.4892 MB / 0.6531 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002313/0.5032, allocations: 0.6249 MB / 0.6537 GB, free: 11.83 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02497/0.5282, allocations: 10.39 MB / 0.6639 GB, free: 1.367 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002115/0.5284, allocations: 7.953 kB / 0.6639 GB, free: 1.359 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001518/0.5299, allocations: 268 kB / 0.6641 GB, free: 1.098 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004739/0.5304, allocations: 417.7 kB / 0.6645 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02122/0.5516, allocations: 9.907 MB / 0.6742 GB, free: 6.766 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2815/0.8331, allocations: 33.52 MB / 0.7069 GB, free: 67.73 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01305/0.8462, allocations: 6.773 MB / 0.7136 GB, free: 67.56 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003835/0.85, allocations: 2.106 MB / 0.7156 GB, free: 67.53 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003888/0.8504, allocations: 97.42 kB / 0.7157 GB, free: 67.53 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.598e-05/0.8504, allocations: 63.08 kB / 0.7158 GB, free: 67.48 MB / 494.1 MB Notification: Performance of pre-optimization done (n=295): time 4.518e-06/0.8504, allocations: 0 / 0.7158 GB, free: 67.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=301): time 0.02244/0.8729, allocations: 10.82 MB / 0.7263 GB, free: 66.28 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/0.8729, allocations: 89.08 kB / 0.7264 GB, free: 66.21 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004963/0.8779, allocations: 3.033 MB / 0.7294 GB, free: 65.94 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004667/0.8784, allocations: 71.23 kB / 0.7295 GB, free: 65.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001503/0.8799, allocations: 2.969 MB / 0.7324 GB, free: 64.61 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009657/0.8808, allocations: 1.086 MB / 0.7334 GB, free: 63.92 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001503/0.8823, allocations: 0.9217 MB / 0.7343 GB, free: 63.55 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.854e-05/0.8824, allocations: 301.1 kB / 0.7346 GB, free: 63.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002717/0.8851, allocations: 2.035 MB / 0.7366 GB, free: 62.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003471/0.8886, allocations: 3.732 MB / 0.7402 GB, free: 59.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006263/0.8948, allocations: 6.061 MB / 0.7462 GB, free: 55.49 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.195e-05/0.8949, allocations: 16.56 kB / 0.7462 GB, free: 55.49 MB / 494.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01033/0.9052, allocations: 6.65 MB / 0.7527 GB, free: 52.35 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.561e-05/0.9052, allocations: 26.75 kB / 0.7527 GB, free: 52.35 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.563e-05/0.9053, allocations: 54.97 kB / 0.7527 GB, free: 52.35 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/0.907, allocations: 0.672 MB / 0.7534 GB, free: 52.06 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00383/0.9108, allocations: 1.074 MB / 0.7544 GB, free: 51.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007557/0.9184, allocations: 6.126 MB / 0.7604 GB, free: 47.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004134/0.9225, allocations: 278.6 kB / 0.7607 GB, free: 47.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008732/0.9234, allocations: 236 kB / 0.7609 GB, free: 46.91 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.004551/0.928, allocations: 2.314 MB / 0.7632 GB, free: 44.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/0.929, allocations: 345 kB / 0.7635 GB, free: 44.32 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00759/0.9366, allocations: 4.61 MB / 0.768 GB, free: 39.69 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.372e-05/0.9366, allocations: 32 kB / 0.768 GB, free: 39.66 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.9366, allocations: 8 kB / 0.768 GB, free: 39.65 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.479e-05/0.9367, allocations: 15.94 kB / 0.7681 GB, free: 39.63 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02016/0.9569, allocations: 11.11 MB / 0.7789 GB, free: 28.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/0.9569, allocations: 4.625 kB / 0.7789 GB, free: 28.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/0.9589, allocations: 0.5418 MB / 0.7794 GB, free: 28.01 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001412/0.9603, allocations: 0.5559 MB / 0.78 GB, free: 27.45 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002428/0.9605, allocations: 75.97 kB / 0.7801 GB, free: 27.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005912/0.9664, allocations: 5.351 MB / 0.7853 GB, free: 21.93 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.9664, allocations: 10.72 kB / 0.7853 GB, free: 21.93 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008378/0.9748, allocations: 6.601 MB / 0.7917 GB, free: 15.19 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001843/0.9767, allocations: 0.6655 MB / 0.7924 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006629/0.9773, allocations: 59.98 kB / 0.7924 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001668/0.979, allocations: 139.9 kB / 0.7926 GB, free: 14.33 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003547/0.9793, allocations: 221.4 kB / 0.7928 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/0.9795, allocations: 99.91 kB / 0.7929 GB, free: 14.02 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002521/0.982, allocations: 2.017 MB / 0.7949 GB, free: 12 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.982, allocations: 0 / 0.7949 GB, free: 12 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004161/0.9862, allocations: 1.176 MB / 0.796 GB, free: 10.82 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.008649/0.9948, allocations: 7.272 MB / 0.8031 GB, free: 3.438 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007618/1.002, allocations: 4.838 MB / 0.8078 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/1.002, allocations: 8.062 kB / 0.8078 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004088/1.007, allocations: 2.114 MB / 0.8099 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004073/1.011, allocations: 0.6344 MB / 0.8105 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07157/1.082, allocations: 39.08 MB / 0.8487 GB, free: 3.211 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004928/1.087, allocations: 4.154 MB / 0.8527 GB, free: 15.02 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003718/1.091, allocations: 1.328 MB / 0.854 GB, free: 13.69 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003554/1.094, allocations: 2.257 MB / 0.8562 GB, free: 11.43 MB / 0.545 GB Notification: Performance of SimCode: time 1.483e-06/1.094, allocations: 0 / 0.8562 GB, free: 11.43 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3958/1.49, allocations: 93.59 MB / 0.9476 GB, free: 202.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.65/21.14, allocations: 0.625 kB / 0.9476 GB, free: 202.2 MB / 0.5919 GB " [Timeout remaining time 639] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 24.669666654997854] Failed to read output from testmodel.py, exit status != 0: 21.301644892002514 21.312650396 20.878309734 Calling exit ...