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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 117.8 kB / 17.13 MB, free: 5.758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 194.1 kB / 20.08 MB, free: 2.848 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.447/1.447, allocations: 207.6 MB / 230.5 MB, free: 3.977 MB / 174.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.05337/0.05337, allocations: 8.204 MB / 290.5 MB, free: 8.109 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.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.002236/0.002236, allocations: 67.91 kB / 406.4 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2334, allocations: 50.89 MB / 457.3 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003053/0.2365, allocations: 2.426 MB / 459.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008979/0.2374, allocations: 0.6921 MB / 460.4 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.2375, allocations: 8.156 kB / 460.4 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.2376, allocations: 34.78 kB / 460.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001268/0.2377, allocations: 75.47 kB / 460.5 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002097/0.238, allocations: 74.5 kB / 460.6 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002911/0.2382, allocations: 295.7 kB / 460.8 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.2384, allocations: 70.67 kB / 460.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.2385, allocations: 122.3 kB / 461 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.2387, allocations: 128.6 kB / 461.2 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.895e-05/0.2387, allocations: 23.38 kB / 461.2 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.263e-05/0.2387, allocations: 27.38 kB / 461.2 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.343e-05/0.2388, allocations: 54.7 kB / 461.3 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.2389, allocations: 127.3 kB / 461.4 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002868/0.2392, allocations: 282.5 kB / 461.7 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2392, allocations: 0 / 461.7 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2392, allocations: 0 / 461.7 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.2392, allocations: 1.281 kB / 461.7 MB, free: 0.5859 MB / 318.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.0008715/0.2401, allocations: 0.5879 MB / 462.3 MB, free: 44 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.094e-05/0.2401, allocations: 16.39 kB / 462.3 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.022e-05/0.2401, allocations: 26.52 kB / 462.3 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.2405, allocations: 248.7 kB / 462.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.2405, allocations: 17.81 kB / 462.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.997e-05/0.2406, allocations: 27.5 kB / 462.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005831/0.2411, allocations: 229.4 kB / 462.8 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.2412, allocations: 5.172 kB / 462.8 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.464e-05/0.2412, allocations: 10.38 kB / 462.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.2412, allocations: 5.469 kB / 462.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005979/0.2418, allocations: 194.7 kB / 463 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.2429, allocations: 0.6682 MB / 463.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007557/0.2437, allocations: 236.7 kB / 463.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003164/0.244, allocations: 113.6 kB / 464 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.244, allocations: 2.312 kB / 464 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004382/0.2444, allocations: 172.3 kB / 464.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.703e-06/0.2444, allocations: 0.9375 kB / 464.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002803/0.2472, allocations: 1.196 MB / 465.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.2473, allocations: 59.72 kB / 465.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.2475, allocations: 180.9 kB / 465.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/0.2475, allocations: 31.77 kB / 465.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.2476, allocations: 146.7 kB / 465.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.2477, allocations: 115.7 kB / 465.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.274e-05/0.2478, allocations: 54.23 kB / 466 MB, free: 13.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.248, allocations: 340.6 kB / 466.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003328/0.2483, allocations: 100.8 kB / 466.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.2486, allocations: 133.5 kB / 466.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.2501, allocations: 0.5492 MB / 467.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.2501, allocations: 0 / 467.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008496/0.251, allocations: 360.5 kB / 467.4 MB, free: 12.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.66e-05/0.251, allocations: 38.81 kB / 467.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.251, allocations: 1.344 kB / 467.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.251, allocations: 2.562 kB / 467.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003291/0.2514, allocations: 74.7 kB / 467.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2514, allocations: 6.281 kB / 467.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002357/0.2516, allocations: 33.28 kB / 467.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.2516, allocations: 11.78 kB / 467.6 MB, free: 12.18 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 >= 1e-15 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 >= 1e-15 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.0002492/0.2519, allocations: 161.4 kB / 467.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.916e-05/0.2519, allocations: 31.33 kB / 467.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.925e-05/0.252, allocations: 26.78 kB / 467.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.252, allocations: 2.531 kB / 467.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.252, allocations: 1.281 kB / 467.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.252, allocations: 3.984 kB / 467.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.2534, allocations: 0.7912 MB / 468.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.2534, allocations: 0 / 468.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003526/0.2537, allocations: 67.8 kB / 468.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.2537, allocations: 2.75 kB / 468.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.202e-05/0.2538, allocations: 6.906 kB / 468.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2538, allocations: 1.344 kB / 468.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2538, allocations: 1.406 kB / 468.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.2549, allocations: 0.5322 MB / 469.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.195e-05/0.255, allocations: 99.78 kB / 469.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.992e-05/0.255, allocations: 10.41 kB / 469.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.2553, allocations: 20.36 kB / 469.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.967e-05/0.2554, allocations: 31.36 kB / 469.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.2554, allocations: 11.31 kB / 469.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001315/0.2555, allocations: 137.5 kB / 469.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2555, allocations: 0 / 469.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003304/0.2559, allocations: 66.91 kB / 469.6 MB, free: 10.72 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.0001176/0.256, allocations: 115 kB / 469.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000797/0.2568, allocations: 304.6 kB / 470 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2568, allocations: 0 / 470 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003806/0.2572, allocations: 145.9 kB / 470.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004303/0.2576, allocations: 48.16 kB / 470.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00277/0.2604, allocations: 0.9222 MB / 471.1 MB, free: 9.699 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000395/0.2608, allocations: 0.7529 MB / 471.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.206e-05/0.2609, allocations: 24.16 kB / 471.9 MB, free: 8.961 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2609, allocations: 0 / 471.9 MB, free: 8.961 MB / 334.1 MB Notification: Performance of Templates: time 0.005936/0.2668, allocations: 3.202 MB / 475.1 MB, free: 6.211 MB / 334.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.982627623016015] Failed to read output from testmodel.py, exit status != 0: 0.27468372299335897 0.288221897 0.046158439 Calling exit ...