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.001663/0.001663, allocations: 107.5 kB / 16.45 MB, free: 6.512 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.00211/0.00211, allocations: 209.7 kB / 19.42 MB, free: 3.648 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.745/1.745, allocations: 207.6 MB / 229.8 MB, free: 11.39 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.05104/0.05104, allocations: 8.198 MB / 289.9 MB, free: 14.84 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.002219/0.002219, allocations: 72.03 kB / 405.2 MB, free: 47.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1029, allocations: 50.89 MB / 456.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003486/0.1064, allocations: 1.906 MB / 458 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000376/0.1068, allocations: 155.4 kB / 458.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.657e-05/0.1069, allocations: 4 kB / 458.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.826e-05/0.1069, allocations: 23.78 kB / 458.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.107, allocations: 35.64 kB / 458.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001806/0.1072, allocations: 39.94 kB / 458.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002249/0.1074, allocations: 175.2 kB / 458.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.1077, allocations: 73.95 kB / 458.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.814e-05/0.1077, allocations: 67.78 kB / 458.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.1078, allocations: 71.7 kB / 458.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.105e-05/0.1079, allocations: 16 kB / 458.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.015e-05/0.1079, allocations: 20 kB / 458.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.691e-05/0.108, allocations: 43.83 kB / 458.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.811e-05/0.1081, allocations: 75.67 kB / 458.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.1083, allocations: 183.3 kB / 459 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1083, allocations: 0 / 459 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1083, allocations: 0 / 459 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1083, allocations: 8 kB / 459 MB, free: 12.05 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.000681/0.109, allocations: 454.8 kB / 459.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.109, allocations: 8.031 kB / 459.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.316e-05/0.1091, allocations: 50.73 kB / 459.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.1092, allocations: 24.78 kB / 459.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001817/0.1093, allocations: 184.1 kB / 459.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.1094, allocations: 12.38 kB / 459.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.863e-05/0.1094, allocations: 24.38 kB / 459.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.1097, allocations: 158.1 kB / 459.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.1097, allocations: 3.938 kB / 459.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.1098, allocations: 8 kB / 459.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.1098, allocations: 4 kB / 459.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.11, allocations: 103.9 kB / 460 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.111, allocations: 0.6755 MB / 460.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004476/0.1115, allocations: 211.6 kB / 460.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002036/0.1117, allocations: 88.73 kB / 461 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.1117, allocations: 0 / 461 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.1117, allocations: 34.56 kB / 461 MB, free: 9.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.052e-06/0.1117, allocations: 0 / 461 MB, free: 9.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009452/0.1127, allocations: 482 kB / 461.5 MB, free: 9.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/0.1127, allocations: 55.41 kB / 461.6 MB, free: 9.234 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.1129, allocations: 121.8 kB / 461.7 MB, free: 9.105 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.1129, allocations: 29.7 kB / 461.7 MB, free: 9.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.113, allocations: 128.3 kB / 461.8 MB, free: 8.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.729e-05/0.113, allocations: 67.45 kB / 461.9 MB, free: 8.871 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.62e-05/0.1131, allocations: 37.72 kB / 461.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.1133, allocations: 322.8 kB / 462.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.897e-05/0.1134, allocations: 43.98 kB / 462.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.1135, allocations: 89.06 kB / 462.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.1137, allocations: 154.3 kB / 462.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1137, allocations: 0 / 462.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000278/0.114, allocations: 177.1 kB / 462.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.114, allocations: 11.98 kB / 462.7 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.114, allocations: 0 / 462.7 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.114, allocations: 12.09 kB / 462.7 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.1142, allocations: 47.92 kB / 462.8 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.1142, allocations: 7.938 kB / 462.8 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.429e-05/0.1143, allocations: 0 / 462.8 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.1143, allocations: 12 kB / 462.8 MB, free: 7.922 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.0001446/0.1144, allocations: 137.7 kB / 462.9 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.482e-05/0.1145, allocations: 11.94 kB / 462.9 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.395e-05/0.1145, allocations: 16.84 kB / 462.9 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1145, allocations: 4 kB / 463 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.1145, allocations: 7.938 kB / 463 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.1146, allocations: 3.984 kB / 463 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006648/0.1152, allocations: 489.3 kB / 463.4 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1152, allocations: 3.938 kB / 463.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002009/0.1154, allocations: 35.98 kB / 463.5 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.1154, allocations: 3.984 kB / 463.5 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.1154, allocations: 4 kB / 463.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1154, allocations: 3.938 kB / 463.5 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1154, allocations: 4 kB / 463.5 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004187/0.1159, allocations: 276 kB / 463.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.921e-05/0.1159, allocations: 89 kB / 463.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.1159, allocations: 0 / 463.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.474e-05/0.116, allocations: 8 kB / 463.9 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.078e-05/0.116, allocations: 8.031 kB / 463.9 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.1161, allocations: 0 / 463.9 MB, free: 6.742 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.036e-05/0.1161, allocations: 99.27 kB / 464 MB, free: 6.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1161, allocations: 0 / 464 MB, free: 6.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000272/0.1164, allocations: 36 kB / 464 MB, free: 6.609 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.0007043/0.1171, allocations: 0.8099 MB / 464.8 MB, free: 5.773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002508/0.1173, allocations: 118.9 kB / 464.9 MB, free: 5.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1174, allocations: 0 / 464.9 MB, free: 5.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.739e-05/0.1174, allocations: 51.92 kB / 465 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.1177, allocations: 11.94 kB / 465 MB, free: 5.598 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.1202, allocations: 1.98 MB / 467 MB, free: 3.504 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.1206, allocations: 0.724 MB / 467.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.316e-05/0.1206, allocations: 13.08 kB / 467.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.043e-05/0.1207, allocations: 35.44 kB / 467.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1207, allocations: 4 kB / 467.7 MB, free: 2.703 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02833/0.149, allocations: 2.596 MB / 470.3 MB, free: 192 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.981/8.13, allocations: 0 / 470.3 MB, free: 192 kB / 334.1 MB " [Timeout remaining time 652] (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: 11.214193638006691] Failed to read output from testmodel.py, exit status != 0: 8.203794321001624 8.219297789 8.107859608 Calling exit ...