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.001556/0.001556, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001648/0.001648, allocations: 213.9 kB / 22.99 MB, free: 4.945 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.316/1.316, allocations: 207.7 MB / 233.9 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 179] 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.05157/0.05157, allocations: 8.209 MB / 294.3 MB, free: 13.55 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: translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") [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.00225/0.00225, allocations: 80.42 kB / 411.7 MB, free: 46.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06214/0.06439, allocations: 50.93 MB / 462.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003638/0.06803, allocations: 2.308 MB / 464.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.06914, allocations: 0.6475 MB / 465.6 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.06925, allocations: 11.88 kB / 465.6 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.06938, allocations: 39.66 kB / 465.6 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001547/0.06953, allocations: 71.34 kB / 465.7 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002276/0.06976, allocations: 75.84 kB / 465.7 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003426/0.0701, allocations: 298.7 kB / 466 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.07027, allocations: 70.23 kB / 466.1 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.07043, allocations: 115.6 kB / 466.2 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001604/0.07059, allocations: 119.4 kB / 466.3 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.014e-05/0.07063, allocations: 24 kB / 466.4 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.556e-05/0.07067, allocations: 24 kB / 466.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.356e-05/0.07072, allocations: 51.83 kB / 466.4 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.07085, allocations: 107.5 kB / 466.5 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003307/0.07118, allocations: 290.8 kB / 466.8 MB, free: 8.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.07118, allocations: 0 / 466.8 MB, free: 8.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.07119, allocations: 0 / 466.8 MB, free: 8.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.07119, allocations: 0 / 466.8 MB, free: 8.562 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.001012/0.0722, allocations: 0.511 MB / 467.3 MB, free: 8.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.07224, allocations: 11.98 kB / 467.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.502e-05/0.0723, allocations: 28.8 kB / 467.4 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.07261, allocations: 194 kB / 467.6 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.07263, allocations: 16.81 kB / 467.6 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.046e-05/0.07268, allocations: 24.38 kB / 467.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005104/0.07319, allocations: 223.5 kB / 467.8 MB, free: 7.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.07321, allocations: 11.95 kB / 467.8 MB, free: 7.484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.07323, allocations: 8 kB / 467.8 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.07324, allocations: 11.94 kB / 467.9 MB, free: 7.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005666/0.07381, allocations: 189.6 kB / 468 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000962/0.07477, allocations: 0.5294 MB / 468.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007173/0.07549, allocations: 236.6 kB / 468.8 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003111/0.0758, allocations: 116.7 kB / 468.9 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.07582, allocations: 3.984 kB / 468.9 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004121/0.07623, allocations: 177 kB / 469.1 MB, free: 6.176 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.924e-06/0.07623, allocations: 0 / 469.1 MB, free: 6.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002528/0.07876, allocations: 1.042 MB / 470.1 MB, free: 5.082 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.07882, allocations: 67.33 kB / 470.2 MB, free: 5.004 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.07897, allocations: 166.6 kB / 470.4 MB, free: 4.832 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.823e-05/0.07901, allocations: 33.7 kB / 470.4 MB, free: 4.793 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.649e-05/0.0791, allocations: 144.8 kB / 470.5 MB, free: 4.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.669e-05/0.0792, allocations: 111.1 kB / 470.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.943e-05/0.07929, allocations: 57.69 kB / 470.7 MB, free: 4.473 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.07945, allocations: 334.8 kB / 471 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003254/0.07977, allocations: 122 kB / 471.1 MB, free: 4.008 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003378/0.08011, allocations: 161.1 kB / 471.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.08151, allocations: 0.5557 MB / 471.9 MB, free: 3.254 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.08151, allocations: 0 / 471.9 MB, free: 3.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000797/0.08231, allocations: 392 kB / 472.2 MB, free: 2.852 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.08234, allocations: 33.69 kB / 472.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.08235, allocations: 4 kB / 472.3 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.08237, allocations: 8 kB / 472.3 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003084/0.08267, allocations: 71.89 kB / 472.4 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.08268, allocations: 4 kB / 472.4 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/0.0829, allocations: 27.97 kB / 472.4 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.08292, allocations: 8 kB / 472.4 MB, free: 2.691 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.0002131/0.08314, allocations: 183.5 kB / 472.6 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.953e-05/0.08318, allocations: 19.86 kB / 472.6 MB, free: 2.484 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.81e-05/0.08323, allocations: 30.59 kB / 472.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.08324, allocations: 4 kB / 472.6 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.08324, allocations: 0 / 472.6 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.08325, allocations: 3.984 kB / 472.6 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.08447, allocations: 0.6864 MB / 473.3 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.08447, allocations: 0 / 473.3 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003259/0.0848, allocations: 71.83 kB / 473.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.0848, allocations: 3.938 kB / 473.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.08482, allocations: 8 kB / 473.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.08482, allocations: 4.062 kB / 473.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.08482, allocations: 4 kB / 473.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.08591, allocations: 0.5339 MB / 473.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-05/0.08594, allocations: 15.91 kB / 474 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.08597, allocations: 8 kB / 474 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.0862, allocations: 28.02 kB / 474 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.06e-05/0.08627, allocations: 23.95 kB / 474 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.08629, allocations: 15.98 kB / 474 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001049/0.0864, allocations: 123.2 kB / 474.2 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.0864, allocations: 0 / 474.2 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.0867, allocations: 64 kB / 474.2 MB, free: 0.7969 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.0001063/0.08681, allocations: 107.1 kB / 474.3 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007684/0.08758, allocations: 348.8 kB / 474.7 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.08758, allocations: 0 / 474.7 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003399/0.08792, allocations: 135.8 kB / 474.8 MB, free: 196 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.08833, allocations: 48.08 kB / 474.8 MB, free: 148 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.09091, allocations: 0.9139 MB / 475.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000159/0.09107, allocations: 142.6 kB / 475.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.439e-05/0.09116, allocations: 23.44 kB / 475.9 MB, free: 15 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.09116, allocations: 0 / 475.9 MB, free: 15 MB / 350.1 MB Notification: Performance of Templates: time 0.005336/0.09649, allocations: 3.277 MB / 479.2 MB, free: 11.75 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile [Timeout 660] (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 & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.542540504131466] Failed to read output from testmodel.py, exit status != 0: 0.10363793978467584 0.11845177500000001 0.044334056000000004 Calling exit ...