Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.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.001893/0.001893, 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.002706/0.002706, allocations: 211.7 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.446/1.446, 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.04887/0.04887, allocations: 8.195 MB / 293.5 MB, free: 13.47 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.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",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.002165/0.002165, allocations: 76.95 kB / 410.4 MB, free: 46.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07905/0.08122, allocations: 50.94 MB / 461.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003676/0.08489, allocations: 2.285 MB / 463.6 MB, free: 11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.08591, allocations: 0.6008 MB / 464.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.08602, allocations: 4 kB / 464.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001551/0.08617, allocations: 39.58 kB / 464.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001555/0.08633, allocations: 75.34 kB / 464.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002255/0.08655, allocations: 67.92 kB / 464.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003462/0.0869, allocations: 298.8 kB / 464.7 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.08709, allocations: 66.23 kB / 464.8 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.08724, allocations: 123.5 kB / 464.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.0874, allocations: 103.5 kB / 465 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.474e-05/0.08744, allocations: 27.98 kB / 465 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.707e-05/0.08749, allocations: 24 kB / 465.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.458e-05/0.08754, allocations: 51.84 kB / 465.1 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.08767, allocations: 107.5 kB / 465.2 MB, free: 9.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003373/0.088, allocations: 282.7 kB / 465.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.08801, allocations: 0 / 465.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.08801, allocations: 4 kB / 465.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.822e-06/0.08802, allocations: 0 / 465.5 MB, free: 9.137 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009789/0.089, allocations: 0.4954 MB / 466 MB, free: 8.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.08904, allocations: 15.98 kB / 466 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.877e-05/0.0891, allocations: 58.72 kB / 466.1 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.242e-05/0.08917, allocations: 32.75 kB / 466.1 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/0.08949, allocations: 202.7 kB / 466.3 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.08951, allocations: 12.81 kB / 466.3 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/0.08956, allocations: 24.38 kB / 466.3 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005044/0.09006, allocations: 223.3 kB / 466.5 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.09008, allocations: 4 kB / 466.5 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.0901, allocations: 8 kB / 466.6 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.09011, allocations: 4 kB / 466.6 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005518/0.09067, allocations: 197.6 kB / 466.8 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009918/0.09166, allocations: 0.6021 MB / 467.4 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007058/0.09236, allocations: 234.5 kB / 467.6 MB, free: 6.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002847/0.09265, allocations: 108.8 kB / 467.7 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.285e-05/0.09266, allocations: 0 / 467.7 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003946/0.09306, allocations: 171.2 kB / 467.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.372e-06/0.09306, allocations: 0 / 467.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002325/0.09538, allocations: 0.972 MB / 468.8 MB, free: 5.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.09543, allocations: 63.33 kB / 468.9 MB, free: 5.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.0956, allocations: 179.6 kB / 469.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.09563, allocations: 33.69 kB / 469.1 MB, free: 5.297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.09574, allocations: 144.8 kB / 469.2 MB, free: 5.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.226e-05/0.09582, allocations: 99.11 kB / 469.3 MB, free: 5.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.063e-05/0.0959, allocations: 53.7 kB / 469.4 MB, free: 4.992 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.09606, allocations: 334.8 kB / 469.7 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002971/0.09636, allocations: 117.6 kB / 469.8 MB, free: 4.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003109/0.09667, allocations: 151.2 kB / 470 MB, free: 4.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.09796, allocations: 0.5115 MB / 470.5 MB, free: 3.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.09796, allocations: 0 / 470.5 MB, free: 3.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007356/0.0987, allocations: 370.2 kB / 470.8 MB, free: 3.461 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.821e-05/0.09875, allocations: 41.62 kB / 470.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.09875, allocations: 0 / 470.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.09877, allocations: 4 kB / 470.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002853/0.09905, allocations: 71.89 kB / 471 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.09906, allocations: 3.938 kB / 471 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002007/0.09926, allocations: 23.97 kB / 471 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.09928, allocations: 16.03 kB / 471 MB, free: 3.297 MB / 334.1 MB Warning: Assuming fixed start value for the following 4 variables: springDamper.phi_rel:VARIABLE(start = 0.0 unit = \"rad\" fixed = true nominal = if springDamper.phi_nominal >= 2.220446049250313e-16 then springDamper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) \"Relative rotation angle (= flange_b.phi - flange_a.phi)\" type: Real springDamper.w_rel:VARIABLE(start = 0.0 unit = \"rad/s\" fixed = true stateSelect=StateSelect.prefer ) \"Relative angular velocity (= der(phi_rel))\" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = \"rad\" fixed = true nominal = if damper.phi_nominal >= 2.220446049250313e-16 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) \"Relative rotation angle (= flange_b.phi - flange_a.phi)\" type: Real damper.w_rel:VARIABLE(start = 0.0 unit = \"rad/s\" fixed = true stateSelect=StateSelect.prefer ) \"Relative angular velocity (= der(phi_rel))\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.trapezoid.count,$PRE.trapezoid.T_start,trapezoid.count,trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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.0002278/0.09951, allocations: 169.7 kB / 471.2 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.09955, allocations: 27.78 kB / 471.2 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.49e-05/0.09961, allocations: 26.66 kB / 471.2 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.09962, allocations: 8 kB / 471.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.09962, allocations: 0 / 471.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.09963, allocations: 3.984 kB / 471.2 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.1008, allocations: 0.644 MB / 471.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1008, allocations: 0 / 471.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003143/0.1011, allocations: 75.95 kB / 472 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.1011, allocations: 0 / 472 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/0.1011, allocations: 8 kB / 472 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1011, allocations: 3.938 kB / 472 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.1011, allocations: 7.984 kB / 472 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.1022, allocations: 0.5056 MB / 472.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.129e-05/0.1022, allocations: 15.86 kB / 472.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.32e-05/0.1022, allocations: 8 kB / 472.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.1024, allocations: 28.02 kB / 472.5 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.092e-05/0.1025, allocations: 27.89 kB / 472.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.1025, allocations: 12 kB / 472.6 MB, free: 1.648 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.1027, allocations: 136.6 kB / 472.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1027, allocations: 0 / 472.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002819/0.1029, allocations: 64 kB / 472.8 MB, free: 1.453 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (springDamper.phi_rel,springDamper.w_rel,damper.phi_rel,damper.w_rel) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001315/0.1042, allocations: 1.038 MB / 473.8 MB, free: 392 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006836/0.1049, allocations: 324.9 kB / 474.1 MB, free: 48 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1049, allocations: 0 / 474.1 MB, free: 48 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003376/0.1053, allocations: 127.8 kB / 474.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.1057, allocations: 59.16 kB / 474.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005295/0.111, allocations: 3.025 MB / 477.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001381/0.1111, allocations: 142.2 kB / 477.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.906e-05/0.1112, allocations: 26.27 kB / 477.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.1113, allocations: 75.42 kB / 477.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1113, allocations: 0 / 477.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/0.1435, allocations: 5.983 MB / 483.6 MB, free: 6.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.06, allocations: 11.38 kB / 483.6 MB, free: 6.523 MB / 350.1 MB " [Timeout remaining time 649] (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.589689407963306] Failed to read output from testmodel.py, exit status != 0: 11.161071670241654 11.176799521 11.085629977 Calling exit ...