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.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009297/0.0009298, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008495/0.008495, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.785/1.785, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04011/0.04011, allocations: 8.107 MB / 278.8 MB, free: 13.11 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.0005741/0.0005742, allocations: 12 kB / 338.9 MB, free: 26.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1186, allocations: 49.27 MB / 388.1 MB, free: 9.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003772/0.1225, allocations: 2.092 MB / 390.2 MB, free: 7.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.1237, allocations: 0.6321 MB / 390.9 MB, free: 6.598 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.1239, allocations: 0 / 390.9 MB, free: 6.598 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001721/0.1241, allocations: 23.78 kB / 390.9 MB, free: 6.574 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.1243, allocations: 67.48 kB / 391 MB, free: 6.508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000234/0.1245, allocations: 55.92 kB / 391 MB, free: 6.453 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003066/0.1248, allocations: 278.8 kB / 391.3 MB, free: 6.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.125, allocations: 85.88 kB / 391.4 MB, free: 6.094 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.1252, allocations: 91.64 kB / 391.5 MB, free: 6.004 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.1253, allocations: 123.4 kB / 391.6 MB, free: 5.883 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.609e-05/0.1254, allocations: 12 kB / 391.6 MB, free: 5.871 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.228e-05/0.1254, allocations: 12 kB / 391.6 MB, free: 5.859 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.559e-05/0.1255, allocations: 39.78 kB / 391.6 MB, free: 5.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.1256, allocations: 141.1 kB / 391.8 MB, free: 5.676 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003753/0.126, allocations: 247.3 kB / 392 MB, free: 5.434 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.126, allocations: 0 / 392 MB, free: 5.434 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.126, allocations: 0 / 392 MB, free: 5.434 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.126, allocations: 0 / 392 MB, free: 5.434 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.001209/0.1272, allocations: 0.5475 MB / 392.6 MB, free: 4.828 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.1273, allocations: 11.97 kB / 392.6 MB, free: 4.816 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.1274, allocations: 28.66 kB / 392.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003255/0.1278, allocations: 240.6 kB / 392.8 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.281e-05/0.1278, allocations: 20.81 kB / 392.9 MB, free: 4.496 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.537e-05/0.1279, allocations: 36.2 kB / 392.9 MB, free: 4.461 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000563/0.1284, allocations: 231.5 kB / 393.1 MB, free: 4.227 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.1285, allocations: 4 kB / 393.1 MB, free: 4.223 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/0.1285, allocations: 12 kB / 393.1 MB, free: 4.211 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.1285, allocations: 11.94 kB / 393.2 MB, free: 4.199 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006413/0.1292, allocations: 221.6 kB / 393.4 MB, free: 3.984 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.1304, allocations: 0.7215 MB / 394.1 MB, free: 3.199 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008644/0.1313, allocations: 266.5 kB / 394.4 MB, free: 2.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003525/0.1316, allocations: 132.8 kB / 394.5 MB, free: 2.797 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.1317, allocations: 4 kB / 394.5 MB, free: 2.793 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004918/0.1322, allocations: 176.3 kB / 394.7 MB, free: 2.609 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.964e-06/0.1322, allocations: 0 / 394.7 MB, free: 2.609 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.00273/0.1349, allocations: 1.196 MB / 395.9 MB, free: 1.324 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.317e-05/0.135, allocations: 55.41 kB / 395.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000193/0.1352, allocations: 179.5 kB / 396.1 MB, free: 1.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.741e-05/0.1352, allocations: 29.7 kB / 396.1 MB, free: 1.035 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.1354, allocations: 144.7 kB / 396.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.1355, allocations: 98.55 kB / 396.4 MB, free: 0.793 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.022e-05/0.1356, allocations: 29.7 kB / 396.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.1358, allocations: 338.8 kB / 396.7 MB, free: 428 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.1361, allocations: 95.94 kB / 396.8 MB, free: 332 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.1364, allocations: 137.5 kB / 396.9 MB, free: 188 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001703/0.1382, allocations: 0.5741 MB / 397.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.1382, allocations: 0 / 397.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007597/0.139, allocations: 359.8 kB / 397.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.367e-05/0.139, allocations: 37.64 kB / 397.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.139, allocations: 0 / 397.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.1391, allocations: 0 / 397.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/0.1394, allocations: 83.88 kB / 398 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.1394, allocations: 7.969 kB / 398 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.1396, allocations: 27.98 kB / 398 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.1397, allocations: 15.98 kB / 398 MB, free: 15.05 MB / 302.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: 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.0003857/0.1401, allocations: 170.4 kB / 398.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.227e-05/0.1401, allocations: 19.75 kB / 398.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.011e-05/0.1402, allocations: 34.58 kB / 398.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.1402, allocations: 4 kB / 398.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.1402, allocations: 4 kB / 398.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1402, allocations: 0 / 398.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001356/0.1416, allocations: 0.742 MB / 399 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1416, allocations: 4 kB / 399 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003396/0.1419, allocations: 76.02 kB / 399.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.142, allocations: 3.938 kB / 399.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/0.142, allocations: 8 kB / 399.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.142, allocations: 0 / 399.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.142, allocations: 4 kB / 399.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001186/0.1432, allocations: 0.5281 MB / 399.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.1433, allocations: 100.9 kB / 399.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.1433, allocations: 8 kB / 399.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.1436, allocations: 31.97 kB / 399.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.443e-05/0.1437, allocations: 27.91 kB / 399.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.1437, allocations: 7.938 kB / 399.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001142/0.1438, allocations: 132.6 kB / 399.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1438, allocations: 0 / 399.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003285/0.1442, allocations: 64 kB / 400 MB, free: 12.98 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: 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.0001768/0.1443, allocations: 103.2 kB / 400.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008624/0.1452, allocations: 328 kB / 400.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1452, allocations: 0 / 400.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003982/0.1456, allocations: 147.8 kB / 400.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000496/0.1461, allocations: 51.61 kB / 400.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002808/0.149, allocations: 1.039 MB / 401.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003619/0.1493, allocations: 0.7555 MB / 402.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001212/0.1495, allocations: 22.23 kB / 402.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.768e-05/0.1496, allocations: 23.44 kB / 402.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1496, allocations: 0 / 402.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of Templates: time 0.007503/0.1571, allocations: 2.573 MB / 405 MB, free: 7.898 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: