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.001194/0.001194, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001406/0.001406, allocations: 214.8 kB / 23.04 MB, free: 5.074 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.389/1.389, allocations: 207.6 MB / 233.8 MB, free: 9.98 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.04814/0.04814, allocations: 8.193 MB / 294.3 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.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="cs",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.002839/0.002839, allocations: 72.45 kB / 411.2 MB, free: 47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1067, allocations: 50.92 MB / 462.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.004418/0.1111, allocations: 1.925 MB / 464.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005627/0.1116, allocations: 151.5 kB / 464.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.1118, allocations: 4 kB / 464.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001/0.1119, allocations: 19.8 kB / 464.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.1121, allocations: 43.61 kB / 464.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.1123, allocations: 35.95 kB / 464.3 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003328/0.1126, allocations: 175.2 kB / 464.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.1129, allocations: 70.14 kB / 464.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.113, allocations: 67.8 kB / 464.6 MB, free: 11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.1132, allocations: 75.69 kB / 464.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.295e-05/0.1132, allocations: 20 kB / 464.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.981e-05/0.1132, allocations: 16 kB / 464.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.182e-05/0.1133, allocations: 35.84 kB / 464.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.776e-05/0.1134, allocations: 83.66 kB / 464.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002912/0.1136, allocations: 179.3 kB / 465 MB, free: 10.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.1137, allocations: 7.984 kB / 465 MB, free: 10.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1137, allocations: 0 / 465 MB, free: 10.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.1137, allocations: 0 / 465 MB, free: 10.59 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.0008113/0.1145, allocations: 377.7 kB / 465.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.1145, allocations: 19.92 kB / 465.4 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.599e-05/0.1146, allocations: 4.188 kB / 465.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.671e-05/0.1146, allocations: 50.73 kB / 465.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.332e-05/0.1147, allocations: 24.77 kB / 465.5 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001861/0.1149, allocations: 130.3 kB / 465.6 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.1149, allocations: 8.375 kB / 465.6 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-05/0.115, allocations: 24.38 kB / 465.7 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.1153, allocations: 153.9 kB / 465.8 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.1153, allocations: 0 / 465.8 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.774e-05/0.1154, allocations: 11.92 kB / 465.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.1154, allocations: 8 kB / 465.8 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002923/0.1157, allocations: 99.91 kB / 465.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.1172, allocations: 0.6183 MB / 466.5 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005327/0.1177, allocations: 142.5 kB / 466.7 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.118, allocations: 76.81 kB / 466.8 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.118, allocations: 0 / 466.8 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/0.1181, allocations: 38.56 kB / 466.8 MB, free: 8.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.1181, allocations: 0 / 466.8 MB, free: 8.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.001211/0.1193, allocations: 405 kB / 467.2 MB, free: 8.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.1193, allocations: 55.34 kB / 467.2 MB, free: 8.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.1196, allocations: 121.8 kB / 467.4 MB, free: 8.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.1196, allocations: 29.7 kB / 467.4 MB, free: 8.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.546e-05/0.1197, allocations: 136.1 kB / 467.5 MB, free: 7.883 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.371e-05/0.1197, allocations: 59.53 kB / 467.6 MB, free: 7.824 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.03e-05/0.1198, allocations: 37.72 kB / 467.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.12, allocations: 326.8 kB / 467.9 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.1201, allocations: 39.98 kB / 468 MB, free: 7.414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.1203, allocations: 93 kB / 468.1 MB, free: 7.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/0.1206, allocations: 152.4 kB / 468.2 MB, free: 7.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.1206, allocations: 0 / 468.2 MB, free: 7.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004165/0.121, allocations: 181.4 kB / 468.4 MB, free: 6.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.121, allocations: 7.984 kB / 468.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.121, allocations: 0 / 468.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.1211, allocations: 8.156 kB / 468.4 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/0.1214, allocations: 47.92 kB / 468.5 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/0.1214, allocations: 7.938 kB / 468.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.1215, allocations: 8 kB / 468.5 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.1215, allocations: 4 kB / 468.5 MB, free: 6.875 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.0001577/0.1217, allocations: 129.8 kB / 468.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.742e-05/0.1217, allocations: 11.94 kB / 468.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.179e-05/0.1218, allocations: 12.78 kB / 468.6 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1218, allocations: 4 kB / 468.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.1218, allocations: 7.938 kB / 468.6 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.1218, allocations: 0 / 468.6 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.1228, allocations: 465.3 kB / 469.1 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1228, allocations: 0 / 469.1 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002697/0.1231, allocations: 39.98 kB / 469.1 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.1231, allocations: 0 / 469.1 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.1231, allocations: 0 / 469.1 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.1231, allocations: 0 / 469.1 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.1231, allocations: 11.94 kB / 469.1 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000538/0.1236, allocations: 276 kB / 469.4 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.491e-05/0.1237, allocations: 7.953 kB / 469.4 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.1237, allocations: 8 kB / 469.4 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.858e-05/0.1238, allocations: 0 / 469.4 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.83e-05/0.1238, allocations: 11.98 kB / 469.4 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.1238, allocations: 0 / 469.4 MB, free: 5.828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.71e-05/0.1239, allocations: 99.27 kB / 469.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1239, allocations: 0 / 469.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003692/0.1243, allocations: 32 kB / 469.6 MB, free: 5.699 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.0008961/0.1251, allocations: 0.8127 MB / 470.4 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003533/0.1255, allocations: 123.9 kB / 470.5 MB, free: 4.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1255, allocations: 0 / 470.5 MB, free: 4.742 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.1256, allocations: 47.92 kB / 470.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.126, allocations: 10.34 kB / 470.6 MB, free: 4.688 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00322/0.1292, allocations: 1.993 MB / 472.6 MB, free: 2.582 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005134/0.1297, allocations: 0.7201 MB / 473.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.699e-05/0.1298, allocations: 13.08 kB / 473.3 MB, free: 1.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.1299, allocations: 47.41 kB / 473.3 MB, free: 1.773 MB / 334.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1299, allocations: 0 / 473.3 MB, free: 1.773 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02856/0.1585, allocations: 2.83 MB / 476.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/10.93, allocations: 15.5 kB / 476.2 MB, free: 14.98 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.567171823000535] Failed to read output from testmodel.py, exit status != 0: 11.08635384903755 11.110930949 10.992760285 Calling exit ...