Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.001418/0.001418, allocations: 102.5 kB / 16.45 MB, free: 6.449 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.00141/0.00141, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.73/1.73, allocations: 207.6 MB / 229.8 MB, free: 11.42 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.05051/0.05051, allocations: 8.186 MB / 289.9 MB, free: 14.86 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.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",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.002294/0.002294, allocations: 74.11 kB / 405.2 MB, free: 47.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1051, allocations: 50.9 MB / 456.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003395/0.1085, allocations: 1.961 MB / 458.1 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000488/0.1089, allocations: 239.9 kB / 458.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.296e-05/0.109, allocations: 4 kB / 458.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.294e-05/0.1091, allocations: 31.72 kB / 458.4 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.1092, allocations: 35.64 kB / 458.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002269/0.1094, allocations: 59.86 kB / 458.5 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.1096, allocations: 187.2 kB / 458.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.1098, allocations: 78.23 kB / 458.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.002e-05/0.1099, allocations: 71.78 kB / 458.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.11, allocations: 83.67 kB / 458.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.349e-05/0.1101, allocations: 20 kB / 458.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.841e-05/0.1101, allocations: 16 kB / 458.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.457e-05/0.1101, allocations: 39.86 kB / 459 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.1103, allocations: 91.59 kB / 459 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002405/0.1105, allocations: 207.2 kB / 459.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1105, allocations: 0 / 459.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1105, allocations: 0 / 459.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1105, allocations: 0 / 459.2 MB, free: 11.84 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007211/0.1112, allocations: 467.1 kB / 459.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1113, allocations: 11.89 kB / 459.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.324e-05/0.1113, allocations: 54.73 kB / 459.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.786e-05/0.1114, allocations: 20.8 kB / 459.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.1115, allocations: 184.1 kB / 460 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.1116, allocations: 16.75 kB / 460 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.317e-05/0.1116, allocations: 28.25 kB / 460 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003196/0.1119, allocations: 168.9 kB / 460.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.112, allocations: 7.875 kB / 460.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.112, allocations: 12 kB / 460.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.112, allocations: 4 kB / 460.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.1122, allocations: 103.7 kB / 460.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.1134, allocations: 0.7067 MB / 461 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003889/0.1138, allocations: 211.6 kB / 461.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.114, allocations: 88.8 kB / 461.3 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.114, allocations: 0 / 461.3 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000264/0.1143, allocations: 91.38 kB / 461.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.363e-06/0.1143, allocations: 0 / 461.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001043/0.1153, allocations: 0.5074 MB / 461.9 MB, free: 8.922 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.1154, allocations: 55.41 kB / 461.9 MB, free: 8.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.1155, allocations: 126.1 kB / 462.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.1155, allocations: 25.7 kB / 462.1 MB, free: 8.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1156, allocations: 144.2 kB / 462.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.649e-05/0.1157, allocations: 75.41 kB / 462.3 MB, free: 8.469 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.508e-05/0.1158, allocations: 41.7 kB / 462.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1159, allocations: 326.8 kB / 462.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001488/0.1161, allocations: 43.98 kB / 462.7 MB, free: 8.051 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.1162, allocations: 106.8 kB / 462.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.1164, allocations: 170.6 kB / 463 MB, free: 7.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1164, allocations: 3.938 kB / 463 MB, free: 7.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000303/0.1167, allocations: 205.3 kB / 463.2 MB, free: 7.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1168, allocations: 4 kB / 463.2 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.1168, allocations: 4 kB / 463.2 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.1168, allocations: 4 kB / 463.2 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002008/0.117, allocations: 60.12 kB / 463.3 MB, free: 7.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.117, allocations: 7.938 kB / 463.3 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.148e-05/0.1171, allocations: 4 kB / 463.3 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.1171, allocations: 12 kB / 463.3 MB, free: 7.426 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0001222/0.1172, allocations: 133.8 kB / 463.4 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.201e-05/0.1172, allocations: 15.83 kB / 463.4 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.753e-05/0.1173, allocations: 16.84 kB / 463.4 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1173, allocations: 0 / 463.4 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1173, allocations: 0 / 463.4 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.1173, allocations: 7.984 kB / 463.5 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006784/0.118, allocations: 0.5064 MB / 464 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.118, allocations: 0 / 464 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.1181, allocations: 35.98 kB / 464 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.1182, allocations: 0 / 464 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.1182, allocations: 4 kB / 464 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.1182, allocations: 3.984 kB / 464 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1182, allocations: 3.938 kB / 464 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003788/0.1185, allocations: 309.5 kB / 464.3 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.662e-05/0.1186, allocations: 89.09 kB / 464.4 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.1186, allocations: 0 / 464.4 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.844e-05/0.1187, allocations: 4 kB / 464.4 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.1187, allocations: 15.92 kB / 464.4 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.1188, allocations: 8 kB / 464.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.398e-05/0.1188, allocations: 91.27 kB / 464.5 MB, free: 6.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1188, allocations: 0 / 464.5 MB, free: 6.098 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.1191, allocations: 44 kB / 464.6 MB, free: 6.055 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.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000733/0.1198, allocations: 0.8323 MB / 465.4 MB, free: 5.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002643/0.1201, allocations: 131.7 kB / 465.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1201, allocations: 448 / 465.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.451e-05/0.1202, allocations: 55.92 kB / 465.6 MB, free: 5.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.1204, allocations: 8 kB / 465.6 MB, free: 5.008 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002438/0.1229, allocations: 2.108 MB / 467.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.1232, allocations: 0.7201 MB / 468.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.112e-05/0.1233, allocations: 17.42 kB / 468.4 MB, free: 2.012 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.728e-05/0.1234, allocations: 47.42 kB / 468.5 MB, free: 1.965 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.1234, allocations: 0 / 468.5 MB, free: 1.965 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0251/0.1485, allocations: 2.797 MB / 471.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.044/8.192, allocations: 8.75 kB / 471.3 MB, free: 15.27 MB / 350.1 MB " [Timeout remaining time 652] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold_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_PlantWithSampleHold.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.229150432001916] Failed to read output from testmodel.py, exit status != 0: 8.261543666987563 8.275758646 8.162358135 Calling exit ...