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.0009586/0.0009584, allocations: 99.94 kB / 15.05 MB, free: 1.113 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.001045/0.001045, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05525/0.05525, allocations: 8.097 MB / 278.5 MB, free: 13.24 MB / 238.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.0007974/0.0007979, allocations: 23.06 kB / 338.2 MB, free: 27.07 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1242, allocations: 49.28 MB / 387.5 MB, free: 9.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.002792/0.127, allocations: 1.949 MB / 389.5 MB, free: 7.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.1284, allocations: 0.6597 MB / 390.1 MB, free: 7.105 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.1286, allocations: 7.938 kB / 390.1 MB, free: 7.098 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.685e-05/0.1287, allocations: 23.84 kB / 390.1 MB, free: 7.074 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000273/0.129, allocations: 83.75 kB / 390.2 MB, free: 6.992 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003251/0.1293, allocations: 55.88 kB / 390.3 MB, free: 6.938 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000378/0.1297, allocations: 199.5 kB / 390.5 MB, free: 6.742 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.1299, allocations: 65.34 kB / 390.5 MB, free: 6.672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.1301, allocations: 95.69 kB / 390.6 MB, free: 6.578 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001744/0.1303, allocations: 111.5 kB / 390.7 MB, free: 6.469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.662e-05/0.1303, allocations: 12 kB / 390.8 MB, free: 6.457 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.208e-05/0.1304, allocations: 12 kB / 390.8 MB, free: 6.445 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.196e-05/0.1304, allocations: 43.83 kB / 390.8 MB, free: 6.402 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.617e-05/0.1305, allocations: 65.58 kB / 390.9 MB, free: 6.332 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002394/0.1308, allocations: 203.7 kB / 391.1 MB, free: 6.133 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1308, allocations: 0 / 391.1 MB, free: 6.133 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1308, allocations: 0 / 391.1 MB, free: 6.133 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.1308, allocations: 0 / 391.1 MB, free: 6.133 MB / 286.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.001131/0.132, allocations: 0.5513 MB / 391.6 MB, free: 5.527 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.132, allocations: 15.97 kB / 391.6 MB, free: 5.512 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.833e-05/0.1321, allocations: 23.72 kB / 391.7 MB, free: 5.488 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.1325, allocations: 242.6 kB / 391.9 MB, free: 5.211 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.1326, allocations: 16.44 kB / 391.9 MB, free: 5.195 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.23e-05/0.1326, allocations: 23.91 kB / 391.9 MB, free: 5.172 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005435/0.1332, allocations: 235.2 kB / 392.2 MB, free: 4.934 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.1332, allocations: 0 / 392.2 MB, free: 4.934 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.1332, allocations: 11.94 kB / 392.2 MB, free: 4.922 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.1333, allocations: 8 kB / 392.2 MB, free: 4.914 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005729/0.1338, allocations: 221.6 kB / 392.4 MB, free: 4.699 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.135, allocations: 0.6778 MB / 393.1 MB, free: 3.969 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007632/0.1358, allocations: 274.4 kB / 393.3 MB, free: 3.691 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.1358, allocations: 7.938 kB / 393.4 MB, free: 3.684 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005315/0.1363, allocations: 185.1 kB / 393.5 MB, free: 3.492 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.713e-06/0.1363, allocations: 0 / 393.5 MB, free: 3.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002778/0.1391, allocations: 1.255 MB / 394.8 MB, free: 2.148 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/0.1392, allocations: 59.39 kB / 394.8 MB, free: 2.078 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.1394, allocations: 186.8 kB / 395 MB, free: 1.887 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.1394, allocations: 33.69 kB / 395.1 MB, free: 1.848 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1395, allocations: 140.7 kB / 395.2 MB, free: 1.707 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.139e-05/0.1396, allocations: 106.5 kB / 395.3 MB, free: 1.602 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.297e-05/0.1397, allocations: 4 kB / 395.3 MB, free: 1.598 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1398, allocations: 338.8 kB / 395.6 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003042/0.1401, allocations: 104.3 kB / 395.7 MB, free: 1.152 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003544/0.1405, allocations: 151.3 kB / 395.9 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004595/0.141, allocations: 166 kB / 396.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.141, allocations: 0 / 396.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008052/0.1418, allocations: 382.4 kB / 396.4 MB, free: 452 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.115e-05/0.1418, allocations: 36.2 kB / 396.5 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.1419, allocations: 3.953 kB / 396.5 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.1419, allocations: 4 kB / 396.5 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003298/0.1422, allocations: 83.94 kB / 396.6 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.1422, allocations: 0 / 396.6 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002382/0.1425, allocations: 31.98 kB / 396.6 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/0.1425, allocations: 15.97 kB / 396.6 MB, free: 272 kB / 286.1 MB Warning: Assuming fixed start value for the following 4 variables: speedSensor.w:DISCRETE(flow=false fixed = true ) "Sensed speed" 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 springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real 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 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,$whenCondition1,$PRE.speedSensor.w,speedSensor.w,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002949/0.1428, allocations: 182.7 kB / 396.8 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.087e-05/0.1429, allocations: 15.81 kB / 396.8 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.574e-05/0.143, allocations: 30.64 kB / 396.8 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.143, allocations: 7.953 kB / 396.8 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.143, allocations: 4 kB / 396.8 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.143, allocations: 0 / 396.8 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001413/0.1444, allocations: 0.8111 MB / 397.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1444, allocations: 4.062 kB / 397.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000342/0.1448, allocations: 75.89 kB / 397.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.1448, allocations: 4 kB / 397.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.724e-05/0.1448, allocations: 11.98 kB / 397.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.1449, allocations: 0 / 397.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.1449, allocations: 0 / 397.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.146, allocations: 0.5898 MB / 398.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.692e-05/0.1461, allocations: 96.92 kB / 398.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.1461, allocations: 11.94 kB / 398.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.1464, allocations: 32.02 kB / 398.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.226e-05/0.1465, allocations: 27.95 kB / 398.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.1465, allocations: 15.95 kB / 398.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001134/0.1466, allocations: 132.4 kB / 398.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1466, allocations: 0 / 398.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003343/0.147, allocations: 64 kB / 398.7 MB, free: 14.04 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001263/0.1471, allocations: 107.2 kB / 398.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008316/0.148, allocations: 343.2 kB / 399.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.148, allocations: 0 / 399.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003816/0.1484, allocations: 156 kB / 399.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.1487, allocations: 40.09 kB / 399.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002793/0.1515, allocations: 1.036 MB / 400.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003892/0.1519, allocations: 0.7561 MB / 401.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.1521, allocations: 26.28 kB / 401.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.834e-05/0.1521, allocations: 19.44 kB / 401.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of SimCode: time 1.113e-06/0.1522, allocations: 0 / 401.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of Templates: time 0.006627/0.1588, allocations: 2.579 MB / 403.7 MB, free: 8.949 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: