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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 110.5 kB / 16.42 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 188.3 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.268/1.268, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04298/0.04298, allocations: 8.109 MB / 278.7 MB, free: 3.953 MB / 222.1 MB 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.001504/0.001504, allocations: 68.42 kB / 387.3 MB, free: 47.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0696/0.07112, allocations: 48.31 MB / 435.6 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003926/0.07508, allocations: 2.415 MB / 438.1 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.07641, allocations: 0.667 MB / 438.7 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00021/0.07664, allocations: 7.938 kB / 438.7 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.07686, allocations: 31.66 kB / 438.8 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002174/0.07709, allocations: 75.33 kB / 438.8 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.07739, allocations: 83.84 kB / 438.9 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000353/0.07776, allocations: 302.7 kB / 439.2 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.07799, allocations: 97.88 kB / 439.3 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.07818, allocations: 111.6 kB / 439.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.07837, allocations: 131.4 kB / 439.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.551e-05/0.07843, allocations: 24 kB / 439.6 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.442e-05/0.0785, allocations: 24 kB / 439.6 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.312e-05/0.07856, allocations: 55.78 kB / 439.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.07868, allocations: 131.4 kB / 439.8 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002445/0.07893, allocations: 279 kB / 440.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.07894, allocations: 4 kB / 440.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.07895, allocations: 0 / 440.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.07896, allocations: 0 / 440.1 MB, free: 4.141 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.0008747/0.07984, allocations: 0.5787 MB / 440.6 MB, free: 3.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.07989, allocations: 11.89 kB / 440.6 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.062e-05/0.07996, allocations: 28.66 kB / 440.7 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.08022, allocations: 247.9 kB / 440.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.08024, allocations: 16.75 kB / 440.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.778e-05/0.08029, allocations: 28.28 kB / 441 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004499/0.08075, allocations: 231.5 kB / 441.2 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.08078, allocations: 0 / 441.2 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.0808, allocations: 8 kB / 441.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.08082, allocations: 8 kB / 441.2 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005018/0.08132, allocations: 193.6 kB / 441.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008289/0.08216, allocations: 0.6621 MB / 442.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006226/0.08279, allocations: 258.3 kB / 442.3 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002599/0.08307, allocations: 127.3 kB / 442.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.393e-05/0.08309, allocations: 0 / 442.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003436/0.08344, allocations: 169.1 kB / 442.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.793e-06/0.08345, allocations: 0 / 442.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002189/0.08565, allocations: 1.196 MB / 443.8 MB, free: 148 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.852e-05/0.08568, allocations: 59.34 kB / 443.9 MB, free: 76 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.08584, allocations: 179.1 kB / 444 MB, free: 15.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.08588, allocations: 33.7 kB / 444.1 MB, free: 15.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.868e-05/0.08597, allocations: 148.6 kB / 444.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.376e-05/0.08605, allocations: 98.56 kB / 444.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.554e-05/0.08616, allocations: 61.69 kB / 444.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.08627, allocations: 334.8 kB / 444.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002945/0.08657, allocations: 96.27 kB / 444.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003102/0.08689, allocations: 143.4 kB / 444.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.08825, allocations: 0.5508 MB / 445.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.08826, allocations: 0 / 445.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007455/0.08902, allocations: 358.5 kB / 445.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.08906, allocations: 31.73 kB / 445.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.08907, allocations: 3.938 kB / 445.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.08909, allocations: 7.984 kB / 445.9 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00032/0.08942, allocations: 75.89 kB / 445.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.08944, allocations: 0 / 445.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.08967, allocations: 28 kB / 446 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.0897, allocations: 12 kB / 446 MB, free: 13.86 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.0001915/0.0899, allocations: 160.2 kB / 446.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.156e-05/0.08995, allocations: 27.8 kB / 446.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.585e-05/0.09002, allocations: 34.59 kB / 446.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.09003, allocations: 0 / 446.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.09004, allocations: 3.984 kB / 446.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.466e-05/0.0901, allocations: 92.83 kB / 446.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.648e-05/0.09014, allocations: 8 kB / 446.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.09036, allocations: 23.97 kB / 446.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.562e-05/0.09044, allocations: 27.91 kB / 446.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009687/0.09142, allocations: 420.7 kB / 446.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001062/0.09249, allocations: 0.6003 MB / 447.4 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003181/0.09282, allocations: 131.9 kB / 447.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.515e-05/0.09293, allocations: 132.3 kB / 447.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of Backend: time 6.52e-07/0.09293, allocations: 0 / 447.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007301/0.09367, allocations: 309.4 kB / 447.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of SimCode: time 0.001237/0.09492, allocations: 1.107 MB / 449 MB, free: 10.68 MB / 334.1 MB Notification: Performance of Templates: time 0.006959/0.1019, allocations: 3.465 MB / 452.5 MB, free: 7.27 MB / 334.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile (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)