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.001666/0.001666, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.00209/0.00209, allocations: 217 kB / 22.25 MB, free: 5.082 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.524/1.524, allocations: 207.6 MB / 233 MB, free: 9.996 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.05235/0.05235, allocations: 8.199 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.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.002267/0.002267, allocations: 76.83 kB / 410.5 MB, free: 46.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08979/0.09205, allocations: 50.93 MB / 461.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.00365/0.0957, allocations: 1.954 MB / 463.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000571/0.09627, allocations: 239.9 kB / 463.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.067e-05/0.09637, allocations: 4 kB / 463.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.382e-05/0.09645, allocations: 31.72 kB / 463.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.09656, allocations: 39.62 kB / 463.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002288/0.09679, allocations: 51.88 kB / 463.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002233/0.09701, allocations: 187.2 kB / 463.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.0972, allocations: 78.52 kB / 464 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.697e-05/0.09729, allocations: 75.77 kB / 464 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.09742, allocations: 79.69 kB / 464.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.233e-05/0.09745, allocations: 24 kB / 464.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.372e-05/0.09748, allocations: 20 kB / 464.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.27e-05/0.09753, allocations: 35.86 kB / 464.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.09764, allocations: 99.58 kB / 464.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.09789, allocations: 195.3 kB / 464.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.09789, allocations: 0 / 464.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.09789, allocations: 0 / 464.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.0979, allocations: 0 / 464.5 MB, free: 10.38 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.0006923/0.0986, allocations: 394 kB / 464.9 MB, free: 9.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.09865, allocations: 19.92 kB / 464.9 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.508e-05/0.09871, allocations: 54.67 kB / 464.9 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.715e-05/0.09876, allocations: 20.8 kB / 465 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.0989, allocations: 122.4 kB / 465.1 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.09892, allocations: 20.75 kB / 465.1 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.172e-05/0.09898, allocations: 28.27 kB / 465.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003337/0.09931, allocations: 165.2 kB / 465.3 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.09933, allocations: 3.938 kB / 465.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.09935, allocations: 12 kB / 465.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-06/0.09936, allocations: 4 kB / 465.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002169/0.09957, allocations: 111.7 kB / 465.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.1008, allocations: 0.6339 MB / 466 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003303/0.1011, allocations: 138.5 kB / 466.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/0.1013, allocations: 88.81 kB / 466.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.1013, allocations: 0 / 466.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.1016, allocations: 90.75 kB / 466.4 MB, free: 8.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.1016, allocations: 0 / 466.4 MB, free: 8.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009472/0.1025, allocations: 444.9 kB / 466.8 MB, free: 7.883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.1026, allocations: 63.34 kB / 466.9 MB, free: 7.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.1027, allocations: 122.1 kB / 467 MB, free: 7.676 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.161e-05/0.1027, allocations: 29.7 kB / 467 MB, free: 7.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.494e-05/0.1028, allocations: 140.3 kB / 467.1 MB, free: 7.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.438e-05/0.1028, allocations: 63.44 kB / 467.2 MB, free: 7.434 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.038e-05/0.1029, allocations: 45.7 kB / 467.2 MB, free: 7.383 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1031, allocations: 322.8 kB / 467.6 MB, free: 7.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.104e-05/0.1031, allocations: 47.98 kB / 467.6 MB, free: 7.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.1033, allocations: 107.6 kB / 467.7 MB, free: 6.883 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002308/0.1035, allocations: 166.6 kB / 467.9 MB, free: 6.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.1035, allocations: 3.938 kB / 467.9 MB, free: 6.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003161/0.1038, allocations: 205.6 kB / 468.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.1038, allocations: 11.97 kB / 468.1 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1039, allocations: 4 kB / 468.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.1039, allocations: 4 kB / 468.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.1041, allocations: 47.97 kB / 468.1 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.1041, allocations: 3.938 kB / 468.1 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.866e-05/0.1042, allocations: 8 kB / 468.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.1042, allocations: 8 kB / 468.2 MB, free: 6.398 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.0001333/0.1043, allocations: 133.8 kB / 468.3 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.257e-05/0.1043, allocations: 19.83 kB / 468.3 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.132e-05/0.1044, allocations: 20.77 kB / 468.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1044, allocations: 0 / 468.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.1044, allocations: 0 / 468.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.1044, allocations: 7.938 kB / 468.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006747/0.1051, allocations: 482.8 kB / 468.8 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1051, allocations: 4 kB / 468.8 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.1053, allocations: 31.98 kB / 468.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.1053, allocations: 4 kB / 468.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.1053, allocations: 12 kB / 468.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.1053, allocations: 0 / 468.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1053, allocations: 0 / 468.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/0.1057, allocations: 305.6 kB / 469.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.567e-05/0.1057, allocations: 7.953 kB / 469.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.1057, allocations: 8.031 kB / 469.2 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.277e-05/0.1058, allocations: 4 kB / 469.2 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.092e-05/0.1058, allocations: 15.92 kB / 469.2 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.1058, allocations: 4 kB / 469.2 MB, free: 5.285 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.708e-05/0.1059, allocations: 102.8 kB / 469.3 MB, free: 5.188 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1059, allocations: 0 / 469.3 MB, free: 5.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002921/0.1062, allocations: 36 kB / 469.3 MB, free: 5.152 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.0006866/0.1069, allocations: 0.8421 MB / 470.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002644/0.1071, allocations: 131.7 kB / 470.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1071, allocations: 0 / 470.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.613e-05/0.1072, allocations: 57.8 kB / 470.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.1075, allocations: 15.92 kB / 470.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.1101, allocations: 2.105 MB / 472.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000399/0.1105, allocations: 0.7279 MB / 473.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.479e-05/0.1105, allocations: 13.42 kB / 473.2 MB, free: 1.086 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.822e-05/0.1106, allocations: 47.42 kB / 473.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1106, allocations: 0 / 473.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03046/0.1411, allocations: 3.004 MB / 476.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.33, allocations: 3.938 kB / 476.3 MB, free: 14.09 MB / 350.1 MB " [Timeout remaining time 649] (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: 14.125359554003808] Failed to read output from testmodel.py, exit status != 0: 11.438093870005105 11.466805152 11.36511069 Calling exit ...