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.001781/0.001781, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002474/0.002474, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.496/1.496, allocations: 207.7 MB / 233.1 MB, free: 9.773 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.04972/0.04972, allocations: 8.196 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.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.002176/0.002176, allocations: 74.95 kB / 410.4 MB, free: 46.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/0.09117, allocations: 50.93 MB / 461.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003297/0.09446, allocations: 1.82 MB / 463.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003719/0.09484, allocations: 147.5 kB / 463.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.155e-05/0.09491, allocations: 7.938 kB / 463.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.341e-05/0.09499, allocations: 27.73 kB / 463.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.0951, allocations: 39.62 kB / 463.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001789/0.09528, allocations: 39.94 kB / 463.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002401/0.09552, allocations: 171.2 kB / 463.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002065/0.09573, allocations: 70.14 kB / 463.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.607e-05/0.09581, allocations: 63.8 kB / 463.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.09595, allocations: 63.69 kB / 463.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.394e-05/0.09599, allocations: 16 kB / 463.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.022e-05/0.09603, allocations: 20 kB / 463.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.682e-05/0.09607, allocations: 35.91 kB / 463.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.09618, allocations: 75.66 kB / 463.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002565/0.09643, allocations: 187.2 kB / 464.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.09644, allocations: 0 / 464.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.09644, allocations: 0 / 464.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.09645, allocations: 0 / 464.1 MB, free: 10.52 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.0006786/0.09712, allocations: 381.7 kB / 464.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.09717, allocations: 11.98 kB / 464.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.707e-05/0.09724, allocations: 50.73 kB / 464.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.22e-05/0.09728, allocations: 16.84 kB / 464.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001548/0.09743, allocations: 134.3 kB / 464.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.09745, allocations: 8.375 kB / 464.7 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.619e-05/0.0975, allocations: 24.31 kB / 464.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.09779, allocations: 150.2 kB / 464.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.09781, allocations: 7.922 kB / 464.9 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.09782, allocations: 12 kB / 464.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.09783, allocations: 4 kB / 464.9 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001917/0.09802, allocations: 103.9 kB / 465 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009903/0.09901, allocations: 0.5793 MB / 465.6 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000386/0.0994, allocations: 130.5 kB / 465.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001916/0.09959, allocations: 80.81 kB / 465.8 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.09961, allocations: 8 kB / 465.8 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.09963, allocations: 34.5 kB / 465.8 MB, free: 8.656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.09963, allocations: 0 / 465.8 MB, free: 8.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007734/0.1004, allocations: 405.1 kB / 466.2 MB, free: 8.227 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.1005, allocations: 55.41 kB / 466.3 MB, free: 8.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.1006, allocations: 125.7 kB / 466.4 MB, free: 8.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.1006, allocations: 25.7 kB / 466.4 MB, free: 7.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.053e-05/0.1007, allocations: 140.1 kB / 466.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.266e-05/0.1007, allocations: 59.47 kB / 466.6 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-05/0.1008, allocations: 45.66 kB / 466.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.101, allocations: 330.8 kB / 467 MB, free: 7.414 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.176e-05/0.101, allocations: 35.98 kB / 467 MB, free: 7.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.1012, allocations: 93.06 kB / 467.1 MB, free: 7.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.1014, allocations: 136.8 kB / 467.3 MB, free: 7.121 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1014, allocations: 4 kB / 467.3 MB, free: 7.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002646/0.1016, allocations: 185.5 kB / 467.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.1016, allocations: 8 kB / 467.5 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1016, allocations: 0 / 467.5 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1017, allocations: 4 kB / 467.5 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.1018, allocations: 47.92 kB / 467.5 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.506e-05/0.1019, allocations: 11.92 kB / 467.5 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.4e-05/0.1019, allocations: 4 kB / 467.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.1019, allocations: 8 kB / 467.5 MB, free: 6.848 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.0001273/0.1021, allocations: 133.7 kB / 467.7 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.102e-05/0.1021, allocations: 12.08 kB / 467.7 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.061e-05/0.1022, allocations: 12.78 kB / 467.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.1022, allocations: 4 kB / 467.7 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1022, allocations: 3.938 kB / 467.7 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1022, allocations: 0 / 467.7 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006573/0.1028, allocations: 449.4 kB / 468.1 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.1028, allocations: 3.938 kB / 468.1 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001728/0.103, allocations: 31.98 kB / 468.2 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.103, allocations: 4 kB / 468.2 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.103, allocations: 8 kB / 468.2 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.103, allocations: 0 / 468.2 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.103, allocations: 0 / 468.2 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003841/0.1034, allocations: 288.9 kB / 468.5 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.665e-05/0.1034, allocations: 11.89 kB / 468.5 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.1034, allocations: 0 / 468.5 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.305e-05/0.1035, allocations: 11.94 kB / 468.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.408e-05/0.1035, allocations: 7.984 kB / 468.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.1035, allocations: 0 / 468.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.436e-05/0.1036, allocations: 99.64 kB / 468.6 MB, free: 5.707 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1036, allocations: 0 / 468.6 MB, free: 5.707 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002574/0.1039, allocations: 40 kB / 468.6 MB, free: 5.668 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.0006508/0.1045, allocations: 0.8056 MB / 469.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002227/0.1047, allocations: 107.8 kB / 469.5 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1047, allocations: 0 / 469.5 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7e-05/0.1048, allocations: 55.92 kB / 469.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.105, allocations: 5.562 kB / 469.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002371/0.1074, allocations: 2.001 MB / 471.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001156/0.1075, allocations: 107.2 kB / 471.7 MB, free: 2.438 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.431e-05/0.1076, allocations: 17.08 kB / 471.7 MB, free: 2.422 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.937e-05/0.1076, allocations: 39.42 kB / 471.8 MB, free: 2.383 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1076, allocations: 0 / 471.8 MB, free: 2.383 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03029/0.1379, allocations: 3.057 MB / 474.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/10.91, allocations: 16.69 kB / 474.8 MB, free: 15.35 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 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: 13.628165524918586] Failed to read output from testmodel.py, exit status != 0: 11.013617182150483 11.040039615 10.93970848 Calling exit ...