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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 109.2 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001938/0.001938, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.587/1.587, allocations: 207.6 MB / 229.8 MB, free: 11.43 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.05136/0.05136, allocations: 8.206 MB / 289.9 MB, free: 14.88 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.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.002161/0.002161, allocations: 73.95 kB / 405.2 MB, free: 47.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09022/0.09239, allocations: 50.89 MB / 456.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003505/0.09589, allocations: 1.901 MB / 458 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003706/0.09626, allocations: 147.5 kB / 458.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.596e-05/0.09635, allocations: 4 kB / 458.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.397e-05/0.09642, allocations: 23.72 kB / 458.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.09653, allocations: 47.62 kB / 458.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.09672, allocations: 39.95 kB / 458.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002128/0.09693, allocations: 171.2 kB / 458.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.09712, allocations: 69.95 kB / 458.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.756e-05/0.09719, allocations: 63.78 kB / 458.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.09732, allocations: 79.69 kB / 458.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.09735, allocations: 16 kB / 458.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.804e-05/0.09738, allocations: 16 kB / 458.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.234e-05/0.09742, allocations: 39.84 kB / 458.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.601e-05/0.09751, allocations: 75.67 kB / 458.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.09776, allocations: 195.3 kB / 459 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.09776, allocations: 0 / 459 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09776, allocations: 0 / 459 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.09777, allocations: 0 / 459 MB, free: 12.11 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.0006689/0.09844, allocations: 454.8 kB / 459.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.09849, allocations: 12.03 kB / 459.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.745e-05/0.09855, allocations: 50.73 kB / 459.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.404e-05/0.0986, allocations: 24.72 kB / 459.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.09876, allocations: 180.2 kB / 459.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.09879, allocations: 16.38 kB / 459.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/0.09883, allocations: 20.38 kB / 459.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002937/0.09912, allocations: 162.1 kB / 459.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.09914, allocations: 3.938 kB / 459.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.09916, allocations: 4 kB / 459.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.09917, allocations: 4 kB / 459.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/0.09936, allocations: 103.9 kB / 460 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.1005, allocations: 0.6794 MB / 460.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004425/0.1009, allocations: 203.6 kB / 460.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002064/0.1011, allocations: 84.8 kB / 460.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.1011, allocations: 4 kB / 460.9 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.1012, allocations: 42.5 kB / 461 MB, free: 9.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.1012, allocations: 0 / 461 MB, free: 9.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008647/0.102, allocations: 491.5 kB / 461.5 MB, free: 9.344 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.1021, allocations: 51.41 kB / 461.5 MB, free: 9.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.1022, allocations: 125.8 kB / 461.6 MB, free: 9.148 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.1022, allocations: 25.7 kB / 461.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.493e-05/0.1023, allocations: 132.3 kB / 461.8 MB, free: 8.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.316e-05/0.1024, allocations: 63.47 kB / 461.8 MB, free: 8.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.109e-05/0.1024, allocations: 37.72 kB / 461.9 MB, free: 8.875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1026, allocations: 326.8 kB / 462.2 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.208e-05/0.1027, allocations: 35.98 kB / 462.2 MB, free: 8.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.1028, allocations: 97 kB / 462.3 MB, free: 8.398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002169/0.103, allocations: 150.3 kB / 462.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.103, allocations: 0 / 462.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002796/0.1033, allocations: 181.1 kB / 462.7 MB, free: 8.055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.1033, allocations: 8.156 kB / 462.7 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.1033, allocations: 4 kB / 462.7 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.1033, allocations: 3.938 kB / 462.7 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.1035, allocations: 51.97 kB / 462.7 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.1035, allocations: 7.875 kB / 462.7 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.964e-05/0.1036, allocations: 8 kB / 462.7 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.1036, allocations: 4 kB / 462.7 MB, free: 7.969 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.0002062/0.1038, allocations: 133.8 kB / 462.9 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.1038, allocations: 11.95 kB / 462.9 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.228e-05/0.1039, allocations: 20.83 kB / 462.9 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1039, allocations: 3.938 kB / 462.9 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1039, allocations: 3.938 kB / 462.9 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.1039, allocations: 0 / 462.9 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006934/0.1046, allocations: 489.9 kB / 463.4 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1046, allocations: 7.875 kB / 463.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001804/0.1048, allocations: 35.98 kB / 463.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1048, allocations: 4 kB / 463.4 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.1048, allocations: 8 kB / 463.4 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.1048, allocations: 3.984 kB / 463.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1048, allocations: 0 / 463.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003539/0.1052, allocations: 276 kB / 463.7 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.46e-05/0.1052, allocations: 85 kB / 463.8 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.1053, allocations: 4 kB / 463.8 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.005e-05/0.1053, allocations: 4 kB / 463.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.29e-05/0.1053, allocations: 12.03 kB / 463.8 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.1054, allocations: 4 kB / 463.8 MB, free: 6.789 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.077e-05/0.1054, allocations: 91.27 kB / 463.9 MB, free: 6.699 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1054, allocations: 0 / 463.9 MB, free: 6.699 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002715/0.1057, allocations: 40 kB / 464 MB, free: 6.66 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.0007011/0.1064, allocations: 0.8099 MB / 464.8 MB, free: 5.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002221/0.1066, allocations: 111.9 kB / 464.9 MB, free: 5.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1066, allocations: 0 / 464.9 MB, free: 5.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.028e-05/0.1067, allocations: 51.92 kB / 464.9 MB, free: 5.664 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002316/0.1069, allocations: 11.94 kB / 464.9 MB, free: 5.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002461/0.1094, allocations: 1.989 MB / 466.9 MB, free: 3.551 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.1098, allocations: 0.7123 MB / 467.6 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.477e-05/0.1098, allocations: 13.08 kB / 467.6 MB, free: 2.801 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.826e-05/0.1099, allocations: 47.42 kB / 467.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1099, allocations: 0 / 467.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/0.1346, allocations: 2.6 MB / 470.3 MB, free: 236 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.108/8.243, allocations: 4.062 kB / 470.3 MB, free: 232 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 & /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: 11.050842074677348] Failed to read output from testmodel.py, exit status != 0: 8.315004169009626 8.342436039 8.239439676 Calling exit ...