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.001296/0.001296, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.422/1.422, allocations: 230.6 MB / 252.7 MB, free: 8.055 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.001546/0.001546, allocations: 221.8 kB / 309.2 MB, free: 2.938 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.04073/0.04073, allocations: 8.916 MB / 374.6 MB, free: 1.727 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.002557/0.002557, allocations: 83.86 kB / 0.4892 GB, free: 7.152 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2676, allocations: 55.6 MB / 0.5435 GB, free: 26.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.01833/0.286, allocations: 21.99 MB / 0.565 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0146/0.3006, allocations: 7.77 MB / 0.5725 GB, free: 6.637 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005793/0.3064, allocations: 205.4 kB / 0.5727 GB, free: 6.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01347/0.3199, allocations: 5.713 MB / 0.5783 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008671/0.3285, allocations: 2.777 MB / 0.581 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004594/0.3331, allocations: 1.596 MB / 0.5826 GB, free: 440 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01183/0.3449, allocations: 7.393 MB / 0.5898 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01537/0.3603, allocations: 8.987 MB / 0.5986 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006585/0.3669, allocations: 3.849 MB / 0.6023 GB, free: 444 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007809/0.3747, allocations: 4.029 MB / 0.6063 GB, free: 12.39 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002726/0.3774, allocations: 1.07 MB / 0.6073 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00453/0.382, allocations: 1.453 MB / 0.6087 GB, free: 9.867 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002923/0.3849, allocations: 2.151 MB / 0.6108 GB, free: 7.711 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007184/0.3921, allocations: 3.206 MB / 0.614 GB, free: 4.492 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0204/0.4125, allocations: 14.56 MB / 0.6282 GB, free: 5.887 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.4125, allocations: 0 / 0.6282 GB, free: 5.887 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.4125, allocations: 0 / 0.6282 GB, free: 5.887 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003994/0.4129, allocations: 0 / 0.6282 GB, free: 5.887 MB / 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.02816/0.441, allocations: 8.889 MB / 0.6369 GB, free: 12.92 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.4411, allocations: 12.03 kB / 0.6369 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00353/0.4446, allocations: 1.037 MB / 0.6379 GB, free: 11.86 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02515/0.4698, allocations: 4.417 MB / 0.6422 GB, free: 7.438 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01199/0.4818, allocations: 4.633 MB / 0.6467 GB, free: 2.754 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005663/0.4823, allocations: 489.1 kB / 0.6472 GB, free: 2.273 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002475/0.4848, allocations: 0.6249 MB / 0.6478 GB, free: 1.648 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02575/0.5105, allocations: 10.49 MB / 0.658 GB, free: 7.059 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002028/0.5108, allocations: 11.95 kB / 0.6581 GB, free: 7.047 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001184/0.5119, allocations: 268 kB / 0.6583 GB, free: 6.785 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004557/0.5124, allocations: 425.7 kB / 0.6587 GB, free: 6.367 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02003/0.5324, allocations: 9.857 MB / 0.6683 GB, free: 12.49 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2738/0.8062, allocations: 30.77 MB / 0.6984 GB, free: 101.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0126/0.8188, allocations: 6.697 MB / 0.7049 GB, free: 101.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003059/0.8219, allocations: 2.1 MB / 0.707 GB, free: 101.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002819/0.8221, allocations: 83.72 kB / 0.7071 GB, free: 101.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.8222, allocations: 63.61 kB / 0.7071 GB, free: 101.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=295): time 6.001e-06/0.8222, allocations: 0 / 0.7071 GB, free: 101.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=301): time 0.02053/0.8427, allocations: 10.82 MB / 0.7177 GB, free: 98.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.894e-05/0.8428, allocations: 83.64 kB / 0.7178 GB, free: 98.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005323/0.8481, allocations: 3.13 MB / 0.7208 GB, free: 97.06 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000468/0.8486, allocations: 76.11 kB / 0.7209 GB, free: 96.99 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001828/0.8504, allocations: 2.97 MB / 0.7238 GB, free: 95.07 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001163/0.8516, allocations: 1.082 MB / 0.7249 GB, free: 94.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001481/0.8531, allocations: 0.9224 MB / 0.7258 GB, free: 93.79 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.24e-05/0.8531, allocations: 307.1 kB / 0.7261 GB, free: 93.49 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002993/0.8561, allocations: 2.033 MB / 0.728 GB, free: 92.72 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003669/0.8598, allocations: 3.75 MB / 0.7317 GB, free: 89.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00702/0.8668, allocations: 6.064 MB / 0.7376 GB, free: 85.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.393e-05/0.8669, allocations: 17.12 kB / 0.7376 GB, free: 85.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01018/0.877, allocations: 6.65 MB / 0.7441 GB, free: 82.88 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.328e-05/0.8771, allocations: 30.31 kB / 0.7442 GB, free: 82.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.046e-05/0.8772, allocations: 52.81 kB / 0.7442 GB, free: 82.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001572/0.8787, allocations: 0.6695 MB / 0.7449 GB, free: 82.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003429/0.8822, allocations: 1.081 MB / 0.7459 GB, free: 82.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007014/0.8892, allocations: 6.029 MB / 0.7518 GB, free: 79.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003804/0.893, allocations: 279.2 kB / 0.7521 GB, free: 79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006777/0.8937, allocations: 234.8 kB / 0.7523 GB, free: 78.96 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.003499/0.8972, allocations: 2.316 MB / 0.7546 GB, free: 77.73 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007937/0.898, allocations: 340.8 kB / 0.7549 GB, free: 77.55 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006552/0.9045, allocations: 4.605 MB / 0.7594 GB, free: 75.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/0.9045, allocations: 28 kB / 0.7594 GB, free: 75.44 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.9045, allocations: 11.88 kB / 0.7594 GB, free: 75.43 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.008e-05/0.9046, allocations: 15.94 kB / 0.7594 GB, free: 75.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01619/0.9208, allocations: 10.57 MB / 0.7698 GB, free: 64.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.9208, allocations: 8 kB / 0.7698 GB, free: 64.74 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/0.9226, allocations: 0.5389 MB / 0.7703 GB, free: 64.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001386/0.924, allocations: 0.5653 MB / 0.7708 GB, free: 63.63 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002154/0.9242, allocations: 67.97 kB / 0.7709 GB, free: 63.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005783/0.93, allocations: 5.262 MB / 0.776 GB, free: 58.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.93, allocations: 4 kB / 0.776 GB, free: 58.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008077/0.9381, allocations: 6.611 MB / 0.7825 GB, free: 51.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002003/0.9401, allocations: 0.6577 MB / 0.7831 GB, free: 50.77 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006746/0.9408, allocations: 63.98 kB / 0.7832 GB, free: 50.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00173/0.9425, allocations: 142 kB / 0.7833 GB, free: 50.57 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003616/0.9429, allocations: 225.8 kB / 0.7836 GB, free: 50.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/0.943, allocations: 96.03 kB / 0.7837 GB, free: 50.25 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002493/0.9455, allocations: 2.017 MB / 0.7856 GB, free: 48.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9455, allocations: 0 / 0.7856 GB, free: 48.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004226/0.9497, allocations: 1.176 MB / 0.7868 GB, free: 47.05 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.008125/0.9579, allocations: 7.273 MB / 0.7939 GB, free: 39.61 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006803/0.9647, allocations: 4.832 MB / 0.7986 GB, free: 34.75 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/0.9647, allocations: 4 kB / 0.7986 GB, free: 34.75 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003061/0.9677, allocations: 2.118 MB / 0.8007 GB, free: 32.62 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003308/0.9711, allocations: 0.645 MB / 0.8013 GB, free: 31.99 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05691/1.028, allocations: 39.05 MB / 0.8394 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005141/1.033, allocations: 3.652 MB / 0.843 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003725/1.037, allocations: 1.326 MB / 0.8443 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003727/1.041, allocations: 2.27 MB / 0.8465 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of SimCode: time 1.312e-06/1.041, allocations: 0 / 0.8465 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3777/1.418, allocations: 91.57 MB / 0.9359 GB, free: 176.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.4/16.82, allocations: 6.172 kB / 0.9359 GB, free: 176.4 MB / 0.5606 GB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4_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_Slip4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.12790619302541] Failed to read output from testmodel.py, exit status != 0: 16.974697494879365 16.987788736 16.572351972 Calling exit ...