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.00171/0.00171, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.002011/0.002011, allocations: 215.9 kB / 23.03 MB, free: 4.949 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.372/1.372, allocations: 207.7 MB / 233.9 MB, free: 9.777 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.04878/0.04878, allocations: 8.202 MB / 294.3 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.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",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.002166/0.002166, allocations: 72.44 kB / 411.2 MB, free: 46.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08133/0.0835, allocations: 50.94 MB / 462.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.004206/0.0877, allocations: 2.285 MB / 464.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.08879, allocations: 0.6086 MB / 465 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.08891, allocations: 7.938 kB / 465 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.08905, allocations: 39.59 kB / 465.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001675/0.08922, allocations: 71.34 kB / 465.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.08945, allocations: 75.84 kB / 465.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.0898, allocations: 294.8 kB / 465.5 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.08998, allocations: 74.23 kB / 465.6 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.09013, allocations: 115.6 kB / 465.7 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001686/0.0903, allocations: 123.5 kB / 465.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.123e-05/0.09034, allocations: 24 kB / 465.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.304e-05/0.09038, allocations: 24 kB / 465.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.231e-05/0.09044, allocations: 55.83 kB / 465.9 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.09057, allocations: 107.5 kB / 466 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003241/0.09089, allocations: 278.9 kB / 466.3 MB, free: 9.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.0909, allocations: 0 / 466.3 MB, free: 9.129 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.0909, allocations: 7.938 kB / 466.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.0909, allocations: 0 / 466.3 MB, free: 9.121 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.001003/0.09191, allocations: 0.4954 MB / 466.8 MB, free: 8.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.09195, allocations: 15.98 kB / 466.8 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.61e-05/0.09197, allocations: 8.562 kB / 466.8 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.674e-05/0.09203, allocations: 58.73 kB / 466.9 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.176e-05/0.0921, allocations: 28.75 kB / 466.9 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.09241, allocations: 198.8 kB / 467.1 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.786e-05/0.09243, allocations: 12.81 kB / 467.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.234e-05/0.09249, allocations: 24.38 kB / 467.1 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000536/0.09303, allocations: 227.2 kB / 467.3 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.09304, allocations: 0 / 467.3 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.09307, allocations: 8 kB / 467.4 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.09308, allocations: 8 kB / 467.4 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005618/0.09364, allocations: 201.5 kB / 467.6 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009973/0.09464, allocations: 0.6021 MB / 468.2 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007048/0.09534, allocations: 226.5 kB / 468.4 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.09563, allocations: 116.7 kB / 468.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.09564, allocations: 0 / 468.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003938/0.09604, allocations: 163.2 kB / 468.7 MB, free: 6.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.483e-06/0.09604, allocations: 0 / 468.7 MB, free: 6.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002344/0.09838, allocations: 0.9838 MB / 469.6 MB, free: 5.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.09843, allocations: 55.41 kB / 469.7 MB, free: 5.504 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001717/0.09861, allocations: 179.6 kB / 469.9 MB, free: 5.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.09865, allocations: 33.7 kB / 469.9 MB, free: 5.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.09875, allocations: 144.7 kB / 470 MB, free: 5.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.94e-05/0.09884, allocations: 99.12 kB / 470.1 MB, free: 5.031 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.927e-05/0.09893, allocations: 53.7 kB / 470.2 MB, free: 4.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.09908, allocations: 330.8 kB / 470.5 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.09938, allocations: 125.6 kB / 470.6 MB, free: 4.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003036/0.09968, allocations: 147.2 kB / 470.8 MB, free: 4.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/0.101, allocations: 0.5154 MB / 471.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.101, allocations: 3.938 kB / 471.3 MB, free: 3.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000745/0.1017, allocations: 378.1 kB / 471.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.01e-05/0.1018, allocations: 33.7 kB / 471.7 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.1018, allocations: 0 / 471.7 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1018, allocations: 0 / 471.7 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002898/0.1021, allocations: 71.89 kB / 471.8 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.1021, allocations: 4 kB / 471.8 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002/0.1023, allocations: 28 kB / 471.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.1023, allocations: 12 kB / 471.8 MB, free: 3.273 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.0002364/0.1026, allocations: 159.6 kB / 472 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.67e-05/0.1026, allocations: 27.8 kB / 472 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.062e-05/0.1027, allocations: 30.66 kB / 472 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1027, allocations: 0 / 472 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1027, allocations: 4 kB / 472 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.1027, allocations: 3.984 kB / 472 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1038, allocations: 0.644 MB / 472.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.1038, allocations: 8.062 kB / 472.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003149/0.1041, allocations: 67.95 kB / 472.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.1042, allocations: 3.984 kB / 472.8 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.1042, allocations: 8 kB / 472.8 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.1042, allocations: 3.938 kB / 472.8 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1042, allocations: 0 / 472.8 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.1052, allocations: 0.5057 MB / 473.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.017e-05/0.1052, allocations: 15.86 kB / 473.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.801e-05/0.1053, allocations: 12.03 kB / 473.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.1055, allocations: 19.98 kB / 473.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.107e-05/0.1056, allocations: 27.89 kB / 473.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/0.1056, allocations: 19.92 kB / 473.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.1057, allocations: 128.6 kB / 473.5 MB, free: 1.508 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1057, allocations: 4 kB / 473.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002929/0.106, allocations: 60 kB / 473.6 MB, free: 1.445 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.001316/0.1073, allocations: 1.042 MB / 474.6 MB, free: 380 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006798/0.108, allocations: 320.9 kB / 474.9 MB, free: 40 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.108, allocations: 0 / 474.9 MB, free: 40 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003375/0.1083, allocations: 131.8 kB / 475 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.1088, allocations: 63.2 kB / 475.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005193/0.1139, allocations: 3.033 MB / 478.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.1141, allocations: 142.1 kB / 478.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.734e-05/0.1142, allocations: 22.28 kB / 478.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.1143, allocations: 79.41 kB / 478.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1143, allocations: 0 / 478.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02615/0.1405, allocations: 5.677 MB / 484.1 MB, free: 6.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.21, allocations: 8.062 kB / 484.1 MB, free: 6.812 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.848856328986585] Failed to read output from testmodel.py, exit status != 0: 11.371377833071165 11.387156813 11.293362595 Calling exit ...