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.001518/0.001518, allocations: 112.6 kB / 16.37 MB, free: 6 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.001421/0.001421, allocations: 196 kB / 17.31 MB, free: 5.613 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.739/1.739, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04091/0.04091, allocations: 8.105 MB / 278.6 MB, free: 3.969 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.002867/0.002867, allocations: 63.91 kB / 338.6 MB, free: 7.855 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3257, allocations: 48.29 MB / 386.9 MB, free: 51.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003952/0.3297, allocations: 2.392 MB / 389.3 MB, free: 50.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.3309, allocations: 0.642 MB / 390 MB, free: 49.7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.3311, allocations: 5.188 kB / 390 MB, free: 49.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.3312, allocations: 39.88 kB / 390 MB, free: 49.67 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.3314, allocations: 73.73 kB / 390.1 MB, free: 49.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.3316, allocations: 68.75 kB / 390.1 MB, free: 49.58 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000311/0.3319, allocations: 287.2 kB / 390.4 MB, free: 49.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.3322, allocations: 102.5 kB / 390.5 MB, free: 49.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.3323, allocations: 114.7 kB / 390.6 MB, free: 49.35 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.3325, allocations: 126.5 kB / 390.8 MB, free: 49.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.238e-05/0.3325, allocations: 23.72 kB / 390.8 MB, free: 49.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.369e-05/0.3326, allocations: 22.88 kB / 390.8 MB, free: 49.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.723e-05/0.3326, allocations: 54.14 kB / 390.9 MB, free: 49.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.3328, allocations: 130.2 kB / 391 MB, free: 49.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003088/0.3331, allocations: 271.4 kB / 391.2 MB, free: 49.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3331, allocations: 3.531 kB / 391.3 MB, free: 49.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3331, allocations: 0 / 391.3 MB, free: 49.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.3331, allocations: 0 / 391.3 MB, free: 49.07 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.0008881/0.334, allocations: 0.5737 MB / 391.8 MB, free: 48.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.334, allocations: 9.906 kB / 391.8 MB, free: 48.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.428e-05/0.3341, allocations: 27 kB / 391.9 MB, free: 48.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/0.3345, allocations: 249.4 kB / 392.1 MB, free: 48.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/0.3345, allocations: 19.44 kB / 392.1 MB, free: 48.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-05/0.3346, allocations: 32.62 kB / 392.2 MB, free: 48.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005406/0.3351, allocations: 220.2 kB / 392.4 MB, free: 48.21 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.3352, allocations: 6.812 kB / 392.4 MB, free: 48.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.3352, allocations: 10.23 kB / 392.4 MB, free: 48.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.3352, allocations: 8.438 kB / 392.4 MB, free: 48.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005849/0.3358, allocations: 195.4 kB / 392.6 MB, free: 48.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.3369, allocations: 0.709 MB / 393.3 MB, free: 47.65 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007247/0.3376, allocations: 245.8 kB / 393.5 MB, free: 47.56 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003105/0.338, allocations: 119.8 kB / 393.7 MB, free: 47.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.338, allocations: 6.688 kB / 393.7 MB, free: 47.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004421/0.3384, allocations: 164.4 kB / 393.8 MB, free: 47.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.3385, allocations: 0.75 kB / 393.8 MB, free: 47.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002515/0.341, allocations: 1.121 MB / 394.9 MB, free: 46.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.341, allocations: 55.3 kB / 395 MB, free: 46.69 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.3412, allocations: 183.2 kB / 395.2 MB, free: 46.56 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.3413, allocations: 31.11 kB / 395.2 MB, free: 46.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/0.3414, allocations: 143.6 kB / 395.3 MB, free: 46.4 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.357e-05/0.3414, allocations: 102 kB / 395.4 MB, free: 46.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.749e-05/0.3415, allocations: 49.38 kB / 395.5 MB, free: 46.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.952e-05/0.3416, allocations: 334.2 kB / 395.8 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/0.3419, allocations: 91.41 kB / 395.9 MB, free: 45.94 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00034/0.3423, allocations: 125 kB / 396 MB, free: 45.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.3435, allocations: 0.5133 MB / 396.5 MB, free: 45.65 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.3436, allocations: 0 / 396.5 MB, free: 45.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000657/0.3442, allocations: 332.5 kB / 396.9 MB, free: 45.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.3443, allocations: 41.2 kB / 396.9 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3443, allocations: 0 / 396.9 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.3443, allocations: 3.406 kB / 396.9 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.3446, allocations: 72.23 kB / 397 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.3446, allocations: 2 kB / 397 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.3449, allocations: 26.91 kB / 397 MB, free: 45.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.833e-05/0.3449, allocations: 12.05 kB / 397 MB, free: 45.45 MB / 318.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.0002367/0.3451, allocations: 159.2 kB / 397.2 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.3452, allocations: 21.97 kB / 397.2 MB, free: 45.29 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.983e-05/0.3453, allocations: 28.66 kB / 397.2 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3453, allocations: 2.469 kB / 397.2 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.526e-05/0.3453, allocations: 6.188 kB / 397.2 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-06/0.3453, allocations: 1.453 kB / 397.2 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.3467, allocations: 0.7088 MB / 397.9 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.3467, allocations: 5.469 kB / 398 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003398/0.3471, allocations: 69.86 kB / 398 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.3471, allocations: 3.656 kB / 398 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.3471, allocations: 13.03 kB / 398 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.3471, allocations: 2.906 kB / 398 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3471, allocations: 0 / 398 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009648/0.3481, allocations: 0.5069 MB / 398.5 MB, free: 44.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.492e-05/0.3482, allocations: 99.33 kB / 398.6 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.687e-05/0.3482, allocations: 8.219 kB / 398.7 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.3484, allocations: 25.66 kB / 398.7 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/0.3485, allocations: 24.44 kB / 398.7 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.3486, allocations: 10.41 kB / 398.7 MB, free: 44.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.051e-05/0.3487, allocations: 131.1 kB / 398.8 MB, free: 44.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3487, allocations: 0 / 398.8 MB, free: 44.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.349, allocations: 60.5 kB / 398.9 MB, free: 44.28 MB / 318.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.0001051/0.3491, allocations: 112.8 kB / 399 MB, free: 44.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006509/0.3498, allocations: 300.5 kB / 399.3 MB, free: 44.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3498, allocations: 0 / 399.3 MB, free: 44.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000322/0.3501, allocations: 133.2 kB / 399.4 MB, free: 44.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.3505, allocations: 68.53 kB / 399.5 MB, free: 43.99 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002315/0.3529, allocations: 0.8577 MB / 400.4 MB, free: 43.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002038/0.3531, allocations: 0.7525 MB / 401.1 MB, free: 42.81 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.3532, allocations: 28.33 kB / 401.1 MB, free: 42.81 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.869e-05/0.3533, allocations: 26 kB / 401.2 MB, free: 42.8 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3533, allocations: 0 / 401.2 MB, free: 42.8 MB / 318.1 MB Notification: Performance of Templates: time 0.006252/0.3596, allocations: 2.81 MB / 404 MB, free: 41.58 MB / 318.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile (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 -s cvode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)