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.001284/0.001284, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.001397/0.001397, allocations: 177.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8292/0.8292, allocations: 158.6 MB / 185 MB, free: 3.039 MB / 170.7 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.02327/0.02327, allocations: 6.411 MB / 243.6 MB, free: 8.973 MB / 234.7 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: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 361.1 MB, free: 3.922 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.405e-05/1.552e-05, allocations: 6.281 kB / 361.1 MB, free: 3.914 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.001874/0.00189, allocations: 2.31 MB / 363.4 MB, free: 1.582 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007018/0.002592, allocations: 0.6475 MB / 364 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.002696, allocations: 7.938 kB / 364 MB, free: 0.918 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.002802, allocations: 35.59 kB / 364.1 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001033/0.002905, allocations: 83.27 kB / 364.1 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001916/0.003097, allocations: 75.72 kB / 364.2 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001978/0.003295, allocations: 318.6 kB / 364.5 MB, free: 424 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.003427, allocations: 66.34 kB / 364.6 MB, free: 360 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.003546, allocations: 167.7 kB / 364.8 MB, free: 192 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.679e-05/0.003633, allocations: 95.69 kB / 364.8 MB, free: 96 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.73e-05/0.00366, allocations: 24 kB / 364.9 MB, free: 72 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.124e-05/0.003682, allocations: 24 kB / 364.9 MB, free: 48 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.85e-05/0.00373, allocations: 55.89 kB / 364.9 MB, free: 15.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.156e-05/0.003812, allocations: 87.69 kB / 365 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002488/0.00406, allocations: 291 kB / 365.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.004062, allocations: 4 kB / 365.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.004063, allocations: 0 / 365.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.004066, allocations: 0 / 365.3 MB, free: 15.62 MB / 298.7 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.0006771/0.004744, allocations: 0.5145 MB / 365.8 MB, free: 15.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.004774, allocations: 11.98 kB / 365.8 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.763e-05/0.004821, allocations: 28.8 kB / 365.9 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.005034, allocations: 193.3 kB / 366.1 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.005048, allocations: 20.81 kB / 366.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.614e-05/0.005084, allocations: 28.31 kB / 366.1 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003015/0.005386, allocations: 216.6 kB / 366.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.0054, allocations: 4.188 kB / 366.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.005416, allocations: 8.375 kB / 366.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.005425, allocations: 15.92 kB / 366.4 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.005722, allocations: 189.8 kB / 366.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006845/0.006407, allocations: 0.5336 MB / 367.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004104/0.006817, allocations: 238.4 kB / 367.3 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.006982, allocations: 116.7 kB / 367.4 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.006994, allocations: 3.938 kB / 367.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002348/0.007229, allocations: 178 kB / 367.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.272e-06/0.00723, allocations: 0 / 367.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001526/0.008756, allocations: 1.044 MB / 368.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.008788, allocations: 59.41 kB / 368.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.568e-05/0.008884, allocations: 166.5 kB / 368.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.008901, allocations: 33.7 kB / 368.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.108e-05/0.008962, allocations: 140.8 kB / 369 MB, free: 11.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.221e-05/0.009015, allocations: 119 kB / 369.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.946e-05/0.009074, allocations: 57.69 kB / 369.2 MB, free: 11.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.391e-05/0.009148, allocations: 326.8 kB / 369.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.009317, allocations: 134 kB / 369.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.009492, allocations: 165.1 kB / 369.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007325/0.01022, allocations: 0.5441 MB / 370.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.01023, allocations: 0 / 370.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004216/0.01065, allocations: 392.3 kB / 370.7 MB, free: 9.918 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.01067, allocations: 37.69 kB / 370.8 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.01068, allocations: 0 / 370.8 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.01069, allocations: 3.984 kB / 370.8 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.01084, allocations: 75.89 kB / 370.9 MB, free: 9.797 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.01085, allocations: 11.88 kB / 370.9 MB, free: 9.785 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.01095, allocations: 28.03 kB / 370.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.01097, allocations: 12 kB / 370.9 MB, free: 9.746 MB / 298.7 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.0001453/0.01111, allocations: 166.4 kB / 371.1 MB, free: 9.578 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.986e-05/0.01113, allocations: 23.86 kB / 371.1 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.528e-05/0.01117, allocations: 30.66 kB / 371.1 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.01117, allocations: 4 kB / 371.1 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.01117, allocations: 0 / 371.1 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.01118, allocations: 7.922 kB / 371.1 MB, free: 9.512 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006825/0.01186, allocations: 0.675 MB / 371.8 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.01186, allocations: 3.938 kB / 371.8 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000411/0.01228, allocations: 75.88 kB / 371.9 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.01228, allocations: 0 / 371.9 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.01229, allocations: 8 kB / 371.9 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.01229, allocations: 0 / 371.9 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01229, allocations: 4 kB / 371.9 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005727/0.01287, allocations: 0.5252 MB / 372.4 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.186e-05/0.01289, allocations: 27.8 kB / 372.5 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.1e-05/0.01291, allocations: 8 kB / 372.5 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.01301, allocations: 31.89 kB / 372.5 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.736e-05/0.01307, allocations: 23.95 kB / 372.5 MB, free: 8.059 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.01308, allocations: 15.98 kB / 372.5 MB, free: 8.043 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.797e-05/0.01314, allocations: 124.5 kB / 372.7 MB, free: 7.922 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01314, allocations: 4 kB / 372.7 MB, free: 7.918 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001985/0.01334, allocations: 64 kB / 372.7 MB, free: 7.855 MB / 298.7 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 8.14e-05/0.01342, allocations: 107.2 kB / 372.8 MB, free: 7.738 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004078/0.01383, allocations: 332.9 kB / 373.1 MB, free: 7.395 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.01383, allocations: 128 / 373.1 MB, free: 7.395 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.01401, allocations: 143.8 kB / 373.3 MB, free: 7.254 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.01427, allocations: 56.72 kB / 373.3 MB, free: 7.199 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.01556, allocations: 0.8028 MB / 374.1 MB, free: 6.359 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.364e-05/0.01564, allocations: 142.6 kB / 374.3 MB, free: 6.203 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.974e-05/0.0157, allocations: 28.5 kB / 374.3 MB, free: 6.176 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.0157, allocations: 0 / 374.3 MB, free: 6.176 MB / 298.7 MB Notification: Performance of Templates: time 0.003358/0.01906, allocations: 3.286 MB / 377.6 MB, free: 2.906 MB / 298.7 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: 4.061446157284081] Failed to read output from testmodel.py, exit status != 0: 0.02363718580454588 0.031742415 0.026106069000000003 Calling exit ...