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.001286/0.001286, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001458/0.001458, allocations: 216.4 kB / 22.25 MB, free: 5.117 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.493/1.493, allocations: 207.6 MB / 233 MB, free: 10 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.0518/0.0518, allocations: 8.197 MB / 293.5 MB, free: 13.65 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.002393/0.002393, allocations: 79.11 kB / 410.4 MB, free: 46.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08459/0.08698, allocations: 50.93 MB / 461.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003469/0.09045, allocations: 1.902 MB / 463.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003948/0.09085, allocations: 151.5 kB / 463.4 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.364e-05/0.09093, allocations: 4 kB / 463.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.579e-05/0.09101, allocations: 19.78 kB / 463.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001051/0.09111, allocations: 39.62 kB / 463.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001901/0.0913, allocations: 51.89 kB / 463.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002202/0.09152, allocations: 167.3 kB / 463.7 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.09173, allocations: 66.14 kB / 463.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.448e-05/0.09181, allocations: 71.78 kB / 463.8 MB, free: 11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.09194, allocations: 75.69 kB / 463.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.165e-05/0.09198, allocations: 16 kB / 463.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.142e-05/0.09201, allocations: 16 kB / 463.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.527e-05/0.09206, allocations: 43.84 kB / 464 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.967e-05/0.09215, allocations: 79.67 kB / 464.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002653/0.09242, allocations: 187.3 kB / 464.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.09242, allocations: 0 / 464.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.09242, allocations: 4 kB / 464.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.09243, allocations: 0 / 464.2 MB, free: 10.59 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.0007107/0.09315, allocations: 377.7 kB / 464.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.09319, allocations: 15.92 kB / 464.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.554e-05/0.09325, allocations: 58.67 kB / 464.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.328e-05/0.0933, allocations: 16.84 kB / 464.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.09343, allocations: 130.2 kB / 464.8 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.09346, allocations: 12.38 kB / 464.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.391e-05/0.0935, allocations: 24.38 kB / 464.9 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.0938, allocations: 154.2 kB / 465 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.09382, allocations: 3.938 kB / 465 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.09384, allocations: 12 kB / 465 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.09385, allocations: 4 kB / 465 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001985/0.09405, allocations: 103.9 kB / 465.1 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.09515, allocations: 0.6144 MB / 465.8 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004043/0.09555, allocations: 134.5 kB / 465.9 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002025/0.09575, allocations: 80.81 kB / 466 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.09577, allocations: 4 kB / 466 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.0958, allocations: 30.56 kB / 466 MB, free: 8.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.0958, allocations: 4 kB / 466 MB, free: 8.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008579/0.09666, allocations: 413 kB / 466.4 MB, free: 8.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.09671, allocations: 55.41 kB / 466.5 MB, free: 8.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.09683, allocations: 117.8 kB / 466.6 MB, free: 8.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.09685, allocations: 25.7 kB / 466.6 MB, free: 8.027 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.728e-05/0.09693, allocations: 140.1 kB / 466.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.773e-05/0.09699, allocations: 55.55 kB / 466.8 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.479e-05/0.09706, allocations: 41.7 kB / 466.8 MB, free: 7.785 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.09722, allocations: 322.8 kB / 467.1 MB, free: 7.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.695e-05/0.09729, allocations: 39.98 kB / 467.2 MB, free: 7.422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.09743, allocations: 97 kB / 467.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001975/0.09763, allocations: 141 kB / 467.4 MB, free: 7.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.09763, allocations: 0 / 467.4 MB, free: 7.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002888/0.09792, allocations: 184.9 kB / 467.6 MB, free: 6.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.09794, allocations: 7.938 kB / 467.6 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.09795, allocations: 8.156 kB / 467.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.09797, allocations: 0 / 467.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002187/0.09819, allocations: 51.91 kB / 467.7 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.0982, allocations: 3.938 kB / 467.7 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.749e-05/0.09827, allocations: 8 kB / 467.7 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.09828, allocations: 8 kB / 467.7 MB, free: 6.883 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.0001195/0.0984, allocations: 125.8 kB / 467.8 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.355e-05/0.09844, allocations: 7.953 kB / 467.8 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.013e-05/0.0985, allocations: 20.78 kB / 467.8 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.0985, allocations: 4 kB / 467.8 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.09851, allocations: 3.938 kB / 467.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.09851, allocations: 3.984 kB / 467.8 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000741/0.09925, allocations: 460.8 kB / 468.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.09926, allocations: 7.938 kB / 468.3 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.09945, allocations: 39.91 kB / 468.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.09945, allocations: 0 / 468.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.09946, allocations: 4 kB / 468.4 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.09947, allocations: 4 kB / 468.4 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.09947, allocations: 3.938 kB / 468.4 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003704/0.09984, allocations: 268.1 kB / 468.6 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.408e-05/0.09986, allocations: 11.89 kB / 468.6 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.09989, allocations: 8 kB / 468.6 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.372e-05/0.09996, allocations: 4 kB / 468.6 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.651e-05/0.09999, allocations: 16.09 kB / 468.7 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.754e-06/0.1, allocations: 8 kB / 468.7 MB, free: 5.824 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.008e-05/0.1001, allocations: 91.66 kB / 468.8 MB, free: 5.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1001, allocations: 0 / 468.8 MB, free: 5.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002839/0.1004, allocations: 36 kB / 468.8 MB, free: 5.699 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.0006695/0.101, allocations: 0.8099 MB / 469.6 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002449/0.1013, allocations: 118.9 kB / 469.7 MB, free: 4.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.1013, allocations: 7.938 kB / 469.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.358e-05/0.1013, allocations: 47.92 kB / 469.8 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.1016, allocations: 14.33 kB / 469.8 MB, free: 4.684 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.1041, allocations: 1.989 MB / 471.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004066/0.1045, allocations: 0.7162 MB / 472.5 MB, free: 1.832 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.639e-05/0.1045, allocations: 13.08 kB / 472.5 MB, free: 1.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.33e-05/0.1046, allocations: 43.42 kB / 472.5 MB, free: 1.777 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1046, allocations: 4 kB / 472.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03154/0.1362, allocations: 2.784 MB / 475.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.41, allocations: 8.062 kB / 475.3 MB, free: 15.02 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.117315491996123] Failed to read output from testmodel.py, exit status != 0: 11.514971028002037 11.530668821 11.435086161 Calling exit ...