Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.001312/0.001312, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] 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.001429/0.001429, allocations: 209.6 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 207.7 MB / 233.1 MB, free: 9.785 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04928/0.04928, allocations: 8.197 MB / 293.5 MB, free: 13.48 MB / 238.1 MB " [Timeout remaining time 180] Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002175/0.002175, allocations: 73.67 kB / 410.4 MB, free: 46.85 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07284/0.07502, allocations: 50.93 MB / 461.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003434/0.07845, allocations: 1.821 MB / 463.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003685/0.07882, allocations: 147.5 kB / 463.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.65e-05/0.0789, allocations: 4 kB / 463.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.274e-05/0.07897, allocations: 23.8 kB / 463.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.07907, allocations: 43.61 kB / 463.4 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.07925, allocations: 35.95 kB / 463.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000214/0.07947, allocations: 179.2 kB / 463.6 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.07966, allocations: 66.14 kB / 463.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.576e-05/0.07975, allocations: 63.8 kB / 463.7 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.07987, allocations: 67.67 kB / 463.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.573e-05/0.0799, allocations: 20 kB / 463.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.173e-05/0.07993, allocations: 16 kB / 463.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.903e-05/0.07997, allocations: 31.92 kB / 463.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.875e-05/0.08005, allocations: 71.72 kB / 463.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.0803, allocations: 187.3 kB / 464.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.0803, allocations: 0 / 464.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.08031, allocations: 3.938 kB / 464.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.08031, allocations: 3.938 kB / 464.1 MB, free: 10.53 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0006174/0.08093, allocations: 381.7 kB / 464.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.08097, allocations: 11.98 kB / 464.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.67e-05/0.08103, allocations: 54.73 kB / 464.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.341e-05/0.08107, allocations: 20.83 kB / 464.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.08121, allocations: 134.2 kB / 464.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.08123, allocations: 12.38 kB / 464.7 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.387e-05/0.08127, allocations: 20.38 kB / 464.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.08156, allocations: 146.2 kB / 464.9 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.08158, allocations: 3.938 kB / 464.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.111e-05/0.0816, allocations: 16 kB / 464.9 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.08161, allocations: 4 kB / 464.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.0818, allocations: 103.9 kB / 465 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.08285, allocations: 0.5715 MB / 465.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004203/0.08327, allocations: 134.5 kB / 465.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.08347, allocations: 88.73 kB / 465.8 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.363e-05/0.08348, allocations: 4 kB / 465.8 MB, free: 8.703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.08351, allocations: 34.56 kB / 465.8 MB, free: 8.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.793e-06/0.08351, allocations: 0 / 465.8 MB, free: 8.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008285/0.08434, allocations: 408.5 kB / 466.2 MB, free: 8.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.072e-05/0.08439, allocations: 51.41 kB / 466.3 MB, free: 8.168 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.0845, allocations: 121.8 kB / 466.4 MB, free: 8.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.08452, allocations: 25.7 kB / 466.4 MB, free: 8.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.603e-05/0.08461, allocations: 140.1 kB / 466.6 MB, free: 7.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.06e-05/0.08466, allocations: 59.48 kB / 466.6 MB, free: 7.809 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.666e-05/0.08473, allocations: 45.66 kB / 466.7 MB, free: 7.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.08489, allocations: 326.8 kB / 467 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.092e-05/0.08496, allocations: 35.98 kB / 467 MB, free: 7.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.08508, allocations: 101 kB / 467.1 MB, free: 7.277 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001969/0.08528, allocations: 140.5 kB / 467.3 MB, free: 7.125 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.08528, allocations: 0 / 467.3 MB, free: 7.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002649/0.08554, allocations: 181.5 kB / 467.4 MB, free: 6.941 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.08556, allocations: 8 kB / 467.5 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.08556, allocations: 0 / 467.5 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.08558, allocations: 4 kB / 467.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.08575, allocations: 47.92 kB / 467.5 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.08576, allocations: 7.938 kB / 467.5 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.496e-05/0.08582, allocations: 7.984 kB / 467.5 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.08583, allocations: 8 kB / 467.5 MB, free: 6.859 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.08595, allocations: 129.8 kB / 467.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.131e-05/0.08598, allocations: 12.05 kB / 467.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.521e-05/0.08602, allocations: 12.78 kB / 467.7 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.08603, allocations: 7.938 kB / 467.7 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.08603, allocations: 3.938 kB / 467.7 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.08604, allocations: 0 / 467.7 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006319/0.08667, allocations: 453.4 kB / 468.1 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.08667, allocations: 3.938 kB / 468.1 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.08684, allocations: 31.98 kB / 468.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.08685, allocations: 4 kB / 468.2 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.08686, allocations: 8 kB / 468.2 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.08686, allocations: 0 / 468.2 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.08686, allocations: 0 / 468.2 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003343/0.0872, allocations: 279.3 kB / 468.5 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.689e-05/0.08722, allocations: 15.92 kB / 468.5 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2e-05/0.08724, allocations: 4 kB / 468.5 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.898e-05/0.08731, allocations: 4 kB / 468.5 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.663e-05/0.08734, allocations: 7.984 kB / 468.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.08735, allocations: 4 kB / 468.5 MB, free: 5.816 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.461e-05/0.08741, allocations: 99.64 kB / 468.6 MB, free: 5.719 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.08741, allocations: 3.938 kB / 468.6 MB, free: 5.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002579/0.08767, allocations: 36 kB / 468.6 MB, free: 5.68 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * 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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006766/0.08835, allocations: 0.8055 MB / 469.4 MB, free: 4.852 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002238/0.08857, allocations: 115.8 kB / 469.5 MB, free: 4.738 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.08857, allocations: 4 kB / 469.5 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.059e-05/0.08864, allocations: 47.92 kB / 469.6 MB, free: 4.688 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.08887, allocations: 8 kB / 469.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002218/0.09109, allocations: 1.993 MB / 471.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.09119, allocations: 103.2 kB / 471.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.198e-05/0.09123, allocations: 17.08 kB / 471.7 MB, free: 2.438 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.718e-05/0.09131, allocations: 43.42 kB / 471.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.09131, allocations: 0 / 471.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02857/0.1199, allocations: 3.062 MB / 474.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.05, allocations: 8.766 kB / 474.8 MB, free: 15.37 MB / 350.1 MB " [Timeout remaining time 649] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.665684285573661] Failed to read output from testmodel.py, exit status != 0: 11.156967125833035 11.184583158 11.09962989 Calling exit ...