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.001576/0.001576, allocations: 113.4 kB / 16.42 MB, free: 6.5 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.001814/0.001815, allocations: 183.9 kB / 17.35 MB, free: 5.758 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.273/1.273, 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.04224/0.04224, allocations: 8.109 MB / 278.7 MB, free: 3.945 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.001356/0.001356, allocations: 76.16 kB / 387.3 MB, free: 47.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06324/0.06461, allocations: 48.32 MB / 435.6 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.002665/0.0673, allocations: 2.411 MB / 438.1 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007728/0.06808, allocations: 0.6748 MB / 438.7 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.0682, allocations: 4 kB / 438.7 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.06834, allocations: 35.59 kB / 438.8 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.06846, allocations: 75.34 kB / 438.8 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.06869, allocations: 79.84 kB / 438.9 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002202/0.06892, allocations: 306.7 kB / 439.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.06908, allocations: 89.94 kB / 439.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.06919, allocations: 123.5 kB / 439.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.06932, allocations: 123.5 kB / 439.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.518e-05/0.06936, allocations: 28 kB / 439.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.873e-05/0.0694, allocations: 24 kB / 439.6 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.853e-05/0.06944, allocations: 59.77 kB / 439.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.857e-05/0.06954, allocations: 127.4 kB / 439.8 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002095/0.06975, allocations: 279 kB / 440.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.06976, allocations: 0 / 440.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.06977, allocations: 0 / 440.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.06978, allocations: 3.938 kB / 440.1 MB, free: 4.145 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.0007981/0.07058, allocations: 0.5826 MB / 440.6 MB, free: 3.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.07062, allocations: 11.89 kB / 440.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.235e-05/0.07068, allocations: 24.66 kB / 440.7 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002055/0.07089, allocations: 239.9 kB / 440.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.07091, allocations: 16.81 kB / 440.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.304e-05/0.07096, allocations: 28.28 kB / 441 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004459/0.07141, allocations: 231.5 kB / 441.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.07144, allocations: 0 / 441.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.128e-05/0.07146, allocations: 12 kB / 441.2 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.07147, allocations: 4 kB / 441.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005117/0.07199, allocations: 197.6 kB / 441.4 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007982/0.0728, allocations: 0.6698 MB / 442.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000629/0.07344, allocations: 262.2 kB / 442.3 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000273/0.07372, allocations: 124.8 kB / 442.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.07375, allocations: 4 kB / 442.4 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003561/0.07411, allocations: 165.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.07412, allocations: 4 kB / 442.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002193/0.07632, allocations: 1.192 MB / 443.8 MB, free: 148 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.64e-05/0.07635, allocations: 55.41 kB / 443.9 MB, free: 80 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.07651, allocations: 179.1 kB / 444 MB, free: 15.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.07655, allocations: 33.7 kB / 444.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.331e-05/0.07663, allocations: 148.6 kB / 444.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.557e-05/0.07671, allocations: 102.5 kB / 444.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.184e-05/0.0768, allocations: 57.69 kB / 444.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.972e-05/0.0769, allocations: 330.8 kB / 444.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003098/0.07722, allocations: 100.3 kB / 444.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003111/0.07754, allocations: 139.4 kB / 444.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.07891, allocations: 0.5509 MB / 445.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.07892, allocations: 0 / 445.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007509/0.07968, allocations: 354.5 kB / 445.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.07972, allocations: 35.73 kB / 445.9 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.07973, allocations: 3.938 kB / 445.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.07974, allocations: 7.922 kB / 445.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003163/0.08007, allocations: 79.89 kB / 445.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.08008, allocations: 4 kB / 445.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.08032, allocations: 28.03 kB / 446 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.08035, 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.0001959/0.08055, allocations: 163.9 kB / 446.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.247e-05/0.08059, allocations: 15.81 kB / 446.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.904e-05/0.08066, allocations: 38.58 kB / 446.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.08068, allocations: 0 / 446.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.08068, allocations: 0 / 446.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.451e-05/0.08074, allocations: 100.8 kB / 446.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.816e-05/0.08078, allocations: 4 kB / 446.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.081, allocations: 27.91 kB / 446.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.415e-05/0.08109, allocations: 23.97 kB / 446.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009855/0.08208, allocations: 416.7 kB / 446.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001067/0.08316, allocations: 0.6042 MB / 447.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003137/0.08349, allocations: 131.9 kB / 447.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.887e-05/0.08358, allocations: 132.3 kB / 447.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of Backend: time 2.61e-07/0.08359, allocations: 4 kB / 447.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000695/0.08429, allocations: 309.4 kB / 447.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of SimCode: time 0.001149/0.08545, allocations: 1.111 MB / 449 MB, free: 10.68 MB / 334.1 MB Notification: Performance of Templates: time 0.006595/0.09206, allocations: 3.452 MB / 452.5 MB, free: 7.281 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)