Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.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.001295/0.001295, allocations: 97.88 kB / 19.73 MB, free: 2.117 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: 216.9 kB / 23.03 MB, free: 4.922 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.399/1.399, allocations: 207.7 MB / 233.9 MB, free: 9.793 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.0484/0.0484, allocations: 8.203 MB / 294.3 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_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",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.002112/0.002112, allocations: 66.97 kB / 411.2 MB, free: 46.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07839/0.0805, allocations: 50.94 MB / 462.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003887/0.08439, allocations: 2.306 MB / 464.4 MB, free: 11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.08563, allocations: 0.6398 MB / 465.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.08574, allocations: 7.938 kB / 465.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.0859, allocations: 39.59 kB / 465.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.08605, allocations: 75.34 kB / 465.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.08629, allocations: 75.84 kB / 465.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000404/0.08669, allocations: 298.7 kB / 465.6 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.08688, allocations: 74.23 kB / 465.6 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001535/0.08703, allocations: 119.6 kB / 465.8 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001734/0.08721, allocations: 127.5 kB / 465.9 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.822e-05/0.08724, allocations: 20 kB / 465.9 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.535e-05/0.08729, allocations: 24 kB / 465.9 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.058e-05/0.08735, allocations: 67.7 kB / 466 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.08748, allocations: 107.5 kB / 466.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003449/0.08783, allocations: 282.8 kB / 466.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.08783, allocations: 0 / 466.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.08783, allocations: 0 / 466.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.08784, allocations: 0 / 466.4 MB, free: 9.051 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.00104/0.08888, allocations: 0.5109 MB / 466.9 MB, free: 8.504 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.08892, allocations: 15.98 kB / 466.9 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.853e-05/0.08894, allocations: 8.625 kB / 466.9 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.928e-05/0.089, allocations: 62.72 kB / 467 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.697e-05/0.08906, allocations: 28.8 kB / 467 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003003/0.08936, allocations: 186.1 kB / 467.2 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.08938, allocations: 20.8 kB / 467.2 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.639e-05/0.08944, allocations: 24.38 kB / 467.2 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005272/0.08997, allocations: 227.1 kB / 467.4 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.08999, allocations: 11.95 kB / 467.5 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.09001, allocations: 7.938 kB / 467.5 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.09002, allocations: 8 kB / 467.5 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000536/0.09056, allocations: 193.6 kB / 467.7 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.09158, allocations: 0.5679 MB / 468.2 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006994/0.09228, allocations: 242.4 kB / 468.5 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000294/0.09257, allocations: 108.8 kB / 468.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.09259, allocations: 7.984 kB / 468.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004214/0.09301, allocations: 177.1 kB / 468.7 MB, free: 6.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.633e-06/0.09302, allocations: 0 / 468.7 MB, free: 6.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002513/0.09553, allocations: 1.05 MB / 469.8 MB, free: 5.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.09558, allocations: 59.39 kB / 469.9 MB, free: 5.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.09576, allocations: 179.2 kB / 470 MB, free: 5.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.09579, allocations: 37.69 kB / 470.1 MB, free: 5.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.09591, allocations: 144.8 kB / 470.2 MB, free: 4.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.196e-05/0.096, allocations: 111.1 kB / 470.3 MB, free: 4.871 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.552e-05/0.0961, allocations: 53.7 kB / 470.4 MB, free: 4.812 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.09626, allocations: 334.8 kB / 470.7 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003148/0.09658, allocations: 126 kB / 470.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003232/0.0969, allocations: 161.1 kB / 471 MB, free: 4.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001344/0.09824, allocations: 0.5482 MB / 471.5 MB, free: 3.598 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.09824, allocations: 0 / 471.5 MB, free: 3.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007648/0.09901, allocations: 395.9 kB / 471.9 MB, free: 3.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.734e-05/0.09906, allocations: 37.7 kB / 471.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.09906, allocations: 0 / 471.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.09908, allocations: 0 / 471.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003023/0.09938, allocations: 79.94 kB / 472 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.09939, allocations: 4 kB / 472 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.09959, allocations: 23.98 kB / 472.1 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.09962, allocations: 19.91 kB / 472.1 MB, free: 3.023 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: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$PRE.trapezoid.count,$PRE.trapezoid.T_start,$PRE.speedSensor.w,trapezoid.count,trapezoid.T_start,speedSensor.w,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * 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.0002212/0.09984, allocations: 165.9 kB / 472.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.591e-05/0.09988, allocations: 23.8 kB / 472.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.599e-05/0.09994, allocations: 30.64 kB / 472.3 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.09995, allocations: 4 kB / 472.3 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.09995, allocations: 4 kB / 472.3 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.09996, allocations: 0 / 472.3 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.1012, allocations: 0.7289 MB / 473 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.1012, allocations: 7.938 kB / 473 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.1015, allocations: 71.94 kB / 473.1 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1015, allocations: 3.938 kB / 473.1 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.1015, allocations: 8 kB / 473.1 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1015, allocations: 8 kB / 473.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.1015, allocations: 4 kB / 473.1 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.1025, allocations: 0.5253 MB / 473.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.568e-05/0.1026, allocations: 23.86 kB / 473.7 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.78e-05/0.1026, allocations: 8 kB / 473.7 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.1028, allocations: 28.02 kB / 473.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.742e-05/0.1029, allocations: 31.83 kB / 473.7 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-05/0.1029, allocations: 15.98 kB / 473.8 MB, free: 1.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.1031, allocations: 127.2 kB / 473.9 MB, free: 1.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1031, allocations: 0 / 473.9 MB, free: 1.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000305/0.1034, allocations: 68 kB / 473.9 MB, free: 1.062 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: 5 ($whenCondition2,$whenCondition1,speedSensor.w,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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001357/0.1047, allocations: 1.074 MB / 475 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007014/0.1054, allocations: 344.8 kB / 475.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1054, allocations: 128 / 475.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003167/0.1057, allocations: 139.8 kB / 475.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004168/0.1061, allocations: 59.81 kB / 475.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005265/0.1114, allocations: 3.135 MB / 478.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001463/0.1116, allocations: 142.6 kB / 478.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.846e-05/0.1117, allocations: 26.28 kB / 478.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.1118, allocations: 79.41 kB / 478.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1118, allocations: 0 / 478.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.1381, allocations: 5.859 MB / 484.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.37, allocations: 12 kB / 484.8 MB, free: 6.066 MB / 350.1 MB " [Timeout remaining time 648] (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.927489571040496] Failed to read output from testmodel.py, exit status != 0: 11.536688302992843 11.559726347 11.467869392 Calling exit ...