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.001335/0.001335, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001495/0.001495, allocations: 219.7 kB / 23.01 MB, free: 4.566 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.366/1.366, allocations: 207.6 MB / 233.8 MB, free: 10 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.05368/0.05368, allocations: 8.201 MB / 294.2 MB, free: 13.66 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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") [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.00229/0.00229, allocations: 80.64 kB / 411.7 MB, free: 46.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06676/0.06905, allocations: 50.94 MB / 462.6 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003857/0.07291, allocations: 2.415 MB / 465 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.074, allocations: 0.6436 MB / 465.7 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.07411, allocations: 7.938 kB / 465.7 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.07425, allocations: 31.66 kB / 465.7 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001532/0.0744, allocations: 75.33 kB / 465.8 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002437/0.07464, allocations: 67.92 kB / 465.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003701/0.07501, allocations: 298.7 kB / 466.1 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.07519, allocations: 78.23 kB / 466.2 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.07535, allocations: 119.6 kB / 466.3 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000181/0.07553, allocations: 119.5 kB / 466.5 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.233e-05/0.07558, allocations: 24 kB / 466.5 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.159e-05/0.07562, allocations: 27.94 kB / 466.5 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.55e-05/0.07567, allocations: 51.83 kB / 466.6 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001483/0.07582, allocations: 127.4 kB / 466.7 MB, free: 8.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003576/0.07618, allocations: 282.7 kB / 467 MB, free: 8.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.07618, allocations: 0 / 467 MB, free: 8.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.07618, allocations: 0 / 467 MB, free: 8.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.07619, allocations: 0 / 467 MB, free: 8.617 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.07719, allocations: 0.4993 MB / 467.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.07724, allocations: 15.98 kB / 467.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.196e-05/0.0773, allocations: 28.75 kB / 467.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.07762, allocations: 190.7 kB / 467.7 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.07764, allocations: 16.81 kB / 467.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.649e-05/0.0777, allocations: 28.38 kB / 467.7 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005223/0.07822, allocations: 223.5 kB / 468 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.07824, allocations: 4 kB / 468 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.07826, allocations: 4 kB / 468 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.07827, allocations: 8 kB / 468 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005877/0.07886, allocations: 197.6 kB / 468.2 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.07995, allocations: 0.6604 MB / 468.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007179/0.08067, allocations: 230.5 kB / 469 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000296/0.08096, allocations: 112.7 kB / 469.2 MB, free: 6.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.08098, allocations: 4 kB / 469.2 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004028/0.08139, allocations: 167.2 kB / 469.3 MB, free: 6.117 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.543e-06/0.08139, allocations: 0 / 469.3 MB, free: 6.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002411/0.0838, allocations: 0.9721 MB / 470.3 MB, free: 5.094 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.994e-05/0.08386, allocations: 55.41 kB / 470.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.08404, allocations: 183.6 kB / 470.5 MB, free: 4.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.971e-05/0.08407, allocations: 33.7 kB / 470.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.08418, allocations: 140.8 kB / 470.7 MB, free: 4.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.346e-05/0.08427, allocations: 103.1 kB / 470.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-05/0.08436, allocations: 57.64 kB / 470.9 MB, free: 4.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.08451, allocations: 330.8 kB / 471.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002934/0.0848, allocations: 95.94 kB / 471.3 MB, free: 4.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.0851, allocations: 125.5 kB / 471.4 MB, free: 3.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/0.08644, allocations: 0.5154 MB / 471.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.08645, allocations: 0 / 471.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007342/0.08718, allocations: 336.5 kB / 472.2 MB, free: 3.055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.015e-05/0.08722, allocations: 37.64 kB / 472.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.08722, allocations: 3.938 kB / 472.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.08724, allocations: 0 / 472.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/0.08755, allocations: 75.88 kB / 472.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.08756, allocations: 4 kB / 472.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.08777, allocations: 24.02 kB / 472.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.08779, allocations: 11.98 kB / 472.4 MB, free: 2.895 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.0002182/0.08801, allocations: 158 kB / 472.5 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.587e-05/0.08805, allocations: 31.8 kB / 472.6 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.338e-05/0.08811, allocations: 26.64 kB / 472.6 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.08812, allocations: 4 kB / 472.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.08812, allocations: 0 / 472.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.08812, allocations: 0 / 472.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.08934, allocations: 0.6869 MB / 473.3 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.08934, allocations: 0 / 473.3 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003282/0.08967, allocations: 67.89 kB / 473.4 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.08967, allocations: 4 kB / 473.4 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.08969, allocations: 4 kB / 473.4 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.08969, allocations: 4 kB / 473.4 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.08969, allocations: 0 / 473.4 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.09074, allocations: 0.5098 MB / 473.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.804e-05/0.09078, allocations: 23.89 kB / 473.9 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.803e-05/0.09082, allocations: 8 kB / 473.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.09105, allocations: 23.97 kB / 473.9 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.929e-05/0.09113, allocations: 31.95 kB / 474 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.872e-05/0.09115, allocations: 11.94 kB / 474 MB, free: 1.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001225/0.09127, allocations: 132.6 kB / 474.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09127, allocations: 0 / 474.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000314/0.09158, allocations: 63.94 kB / 474.2 MB, free: 1.031 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.0001187/0.0917, allocations: 114.5 kB / 474.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007118/0.09241, allocations: 287.1 kB / 474.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.09242, allocations: 0 / 474.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003245/0.09274, allocations: 124 kB / 474.7 MB, free: 0.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004358/0.09318, allocations: 55.64 kB / 474.7 MB, free: 456 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002604/0.09578, allocations: 0.9066 MB / 475.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.09617, allocations: 0.748 MB / 476.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.161e-05/0.09625, allocations: 23.44 kB / 476.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.09625, allocations: 0 / 476.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of Templates: time 0.005355/0.1016, allocations: 3.057 MB / 479.5 MB, free: 11.65 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile [Timeout 660] (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 & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.084257464855909] Failed to read output from testmodel.py, exit status != 0: 0.10912137595005333 0.124702036 0.045439638000000004 Calling exit ...