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.001793/0.001793, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002195/0.002195, allocations: 213.6 kB / 22.24 MB, free: 5.238 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.4/1.4, allocations: 207.7 MB / 233.1 MB, free: 9.781 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.0486/0.0486, allocations: 8.201 MB / 293.5 MB, free: 13.46 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.002184/0.002184, allocations: 80.86 kB / 410.5 MB, free: 46.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.084/0.08618, allocations: 50.93 MB / 461.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.004376/0.09056, allocations: 1.856 MB / 463.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007012/0.09126, allocations: 235.9 kB / 463.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.09136, allocations: 4 kB / 463.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.111e-05/0.09146, allocations: 31.72 kB / 463.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.0916, allocations: 43.56 kB / 463.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.09192, allocations: 51.88 kB / 463.6 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002854/0.09221, allocations: 179.2 kB / 463.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.09246, allocations: 74.52 kB / 463.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.09258, allocations: 79.77 kB / 463.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.09273, allocations: 71.56 kB / 464 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.446e-05/0.09277, allocations: 20 kB / 464 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.603e-05/0.09282, allocations: 16 kB / 464 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.554e-05/0.09288, allocations: 43.92 kB / 464.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.09302, allocations: 83.64 kB / 464.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003279/0.09335, allocations: 199.3 kB / 464.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.09335, allocations: 0 / 464.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.09336, allocations: 0 / 464.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.09336, allocations: 0 / 464.3 MB, free: 10.3 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.0008455/0.09421, allocations: 390 kB / 464.7 MB, free: 9.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.85e-05/0.09427, allocations: 15.98 kB / 464.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.019e-05/0.09435, allocations: 50.73 kB / 464.8 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.41e-05/0.09441, allocations: 28.8 kB / 464.8 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001481/0.09456, allocations: 122.3 kB / 464.9 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.09459, allocations: 16.75 kB / 465 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.09464, allocations: 20.33 kB / 465 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000404/0.09505, allocations: 169.2 kB / 465.1 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.09507, allocations: 3.938 kB / 465.1 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.09509, allocations: 8 kB / 465.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.0951, allocations: 11.94 kB / 465.2 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002689/0.09537, allocations: 103.7 kB / 465.3 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.09679, allocations: 0.6027 MB / 465.9 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004337/0.09723, allocations: 142.5 kB / 466 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002557/0.09748, allocations: 80.81 kB / 466.1 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.0975, allocations: 0 / 466.1 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003009/0.0978, allocations: 94.75 kB / 466.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.523e-06/0.0978, allocations: 0 / 466.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001208/0.09901, allocations: 451.1 kB / 466.6 MB, free: 7.848 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.472e-05/0.09908, allocations: 59.41 kB / 466.7 MB, free: 7.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.09923, allocations: 129.9 kB / 466.8 MB, free: 7.641 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.09926, allocations: 29.7 kB / 466.8 MB, free: 7.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.0994, allocations: 136.4 kB / 467 MB, free: 7.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.153e-05/0.09947, allocations: 63.44 kB / 467 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.09958, allocations: 49.66 kB / 467.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.09977, allocations: 322.8 kB / 467.4 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.09989, allocations: 47.92 kB / 467.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.1001, allocations: 107.6 kB / 467.5 MB, free: 6.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003241/0.1004, allocations: 170.6 kB / 467.7 MB, free: 6.656 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.1004, allocations: 3.938 kB / 467.7 MB, free: 6.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004153/0.1008, allocations: 201.6 kB / 467.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.1009, allocations: 8 kB / 467.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.1009, allocations: 7.938 kB / 467.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.1009, allocations: 0 / 467.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.1012, allocations: 51.91 kB / 468 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.1012, allocations: 4 kB / 468 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.487e-05/0.1013, allocations: 8 kB / 468 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.1013, allocations: 11.94 kB / 468 MB, free: 6.359 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.0001622/0.1014, allocations: 129.8 kB / 468.1 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.495e-05/0.1015, allocations: 15.84 kB / 468.1 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.594e-05/0.1016, allocations: 24.77 kB / 468.2 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.1016, allocations: 0 / 468.2 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.1016, allocations: 7.875 kB / 468.2 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.1016, allocations: 4 kB / 468.2 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008643/0.1024, allocations: 461.7 kB / 468.6 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1024, allocations: 4 kB / 468.6 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002491/0.1027, allocations: 35.97 kB / 468.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.1027, allocations: 0 / 468.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.1027, allocations: 8 kB / 468.7 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1027, allocations: 0 / 468.7 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1027, allocations: 4 kB / 468.7 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005359/0.1033, allocations: 305.6 kB / 469 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.301e-05/0.1033, allocations: 11.95 kB / 469 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.436e-05/0.1033, allocations: 8 kB / 469 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.1034, allocations: 4 kB / 469 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.351e-05/0.1035, allocations: 11.97 kB / 469 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.1035, allocations: 7.984 kB / 469 MB, free: 5.262 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.723e-05/0.1036, allocations: 91.27 kB / 469.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1036, allocations: 0 / 469.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004166/0.104, allocations: 44 kB / 469.2 MB, free: 5.129 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.0009066/0.1049, allocations: 0.8379 MB / 470 MB, free: 4.266 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003162/0.1052, allocations: 135.7 kB / 470.1 MB, free: 4.133 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1052, allocations: 0 / 470.1 MB, free: 4.133 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.1053, allocations: 53.8 kB / 470.2 MB, free: 4.082 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.1057, allocations: 8 kB / 470.2 MB, free: 4.074 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003262/0.1089, allocations: 2.113 MB / 472.3 MB, free: 1.836 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000148/0.1091, allocations: 111.9 kB / 472.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.143e-05/0.1092, allocations: 17.42 kB / 472.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.1093, allocations: 47.42 kB / 472.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1093, allocations: 0 / 472.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03693/0.1462, allocations: 3.272 MB / 475.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.77, allocations: 3.953 kB / 475.7 MB, free: 14.41 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 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: 13.351461117621511] Failed to read output from testmodel.py, exit status != 0: 10.877047666348517 10.903542499 10.805532427 Calling exit ...