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.001492/0.001492, allocations: 108.9 kB / 16.27 MB, free: 6.355 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.001558/0.001558, allocations: 190.4 kB / 17.2 MB, free: 5.953 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.605/1.605, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04164/0.04164, allocations: 8.105 MB / 278.5 MB, free: 4.027 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.001542/0.001542, allocations: 72.47 kB / 337.9 MB, free: 8.574 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2766, allocations: 48.28 MB / 386.1 MB, free: 51.24 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003772/0.2804, allocations: 2.387 MB / 388.5 MB, free: 49.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.2815, allocations: 0.6438 MB / 389.2 MB, free: 49.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.2817, allocations: 8.656 kB / 389.2 MB, free: 49.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.2818, allocations: 32.08 kB / 389.2 MB, free: 49.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001441/0.282, allocations: 70.59 kB / 389.3 MB, free: 49.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000247/0.2823, allocations: 68.48 kB / 389.3 MB, free: 49.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003274/0.2826, allocations: 299 kB / 389.6 MB, free: 48.87 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002169/0.2828, allocations: 96.34 kB / 389.7 MB, free: 48.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.283, allocations: 111 kB / 389.8 MB, free: 48.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000166/0.2831, allocations: 129.5 kB / 390 MB, free: 48.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.478e-05/0.2832, allocations: 23.59 kB / 390 MB, free: 48.72 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.833e-05/0.2832, allocations: 24.25 kB / 390 MB, free: 48.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.59e-05/0.2833, allocations: 52.88 kB / 390.1 MB, free: 48.69 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.2835, allocations: 130.5 kB / 390.2 MB, free: 48.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003309/0.2838, allocations: 266.9 kB / 390.5 MB, free: 48.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2838, allocations: 0 / 390.5 MB, free: 48.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2838, allocations: 4.531 kB / 390.5 MB, free: 48.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.2838, allocations: 0 / 390.5 MB, free: 48.5 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.0009982/0.2848, allocations: 0.5735 MB / 391 MB, free: 48.01 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.2849, allocations: 10.59 kB / 391 MB, free: 48.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.838e-05/0.285, allocations: 26.72 kB / 391.1 MB, free: 48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002677/0.2852, allocations: 244.8 kB / 391.3 MB, free: 47.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.2853, allocations: 21.25 kB / 391.3 MB, free: 47.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.8e-05/0.2853, allocations: 28.73 kB / 391.4 MB, free: 47.74 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005265/0.2859, allocations: 228.6 kB / 391.6 MB, free: 47.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.2859, allocations: 2.188 kB / 391.6 MB, free: 47.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.2859, allocations: 7.281 kB / 391.6 MB, free: 47.63 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.2859, allocations: 6.031 kB / 391.6 MB, free: 47.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005908/0.2865, allocations: 196.5 kB / 391.8 MB, free: 47.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.2876, allocations: 0.7235 MB / 392.5 MB, free: 47.08 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007732/0.2884, allocations: 246.8 kB / 392.8 MB, free: 46.99 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003301/0.2887, allocations: 120.7 kB / 392.9 MB, free: 46.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.2887, allocations: 2.969 kB / 392.9 MB, free: 46.95 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004848/0.2892, allocations: 163.5 kB / 393 MB, free: 46.88 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 2.605e-06/0.2892, allocations: 0 / 393 MB, free: 46.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00239/0.2916, allocations: 1.115 MB / 394.1 MB, free: 46.19 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.2917, allocations: 58.14 kB / 394.2 MB, free: 46.13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/0.2918, allocations: 181.2 kB / 394.4 MB, free: 46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.2919, allocations: 31.02 kB / 394.4 MB, free: 45.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.213e-05/0.292, allocations: 143.3 kB / 394.6 MB, free: 45.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.689e-05/0.292, allocations: 102.1 kB / 394.7 MB, free: 45.76 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.614e-05/0.2921, allocations: 53.48 kB / 394.7 MB, free: 45.72 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.543e-05/0.2922, allocations: 335 kB / 395 MB, free: 45.4 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003029/0.2925, allocations: 90.11 kB / 395.1 MB, free: 45.38 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003131/0.2928, allocations: 127.7 kB / 395.2 MB, free: 45.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.2942, allocations: 0.515 MB / 395.8 MB, free: 45.08 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-06/0.2942, allocations: 0 / 395.8 MB, free: 45.08 MB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007235/0.2949, allocations: 339.7 kB / 396.1 MB, free: 44.92 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/0.295, allocations: 38.66 kB / 396.1 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.295, allocations: 0 / 396.1 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.295, allocations: 3.453 kB / 396.1 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003016/0.2953, allocations: 72.47 kB / 396.2 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.2954, allocations: 5.406 kB / 396.2 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.2956, allocations: 24.11 kB / 396.2 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.2956, allocations: 12.69 kB / 396.2 MB, free: 44.87 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.0002167/0.2958, allocations: 158.8 kB / 396.4 MB, free: 44.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.203e-05/0.2959, allocations: 24.66 kB / 396.4 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.662e-05/0.296, allocations: 28.84 kB / 396.4 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.296, allocations: 6.125 kB / 396.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.296, allocations: 0 / 396.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.296, allocations: 2.828 kB / 396.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/0.2971, allocations: 0.7205 MB / 397.2 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.2971, allocations: 1.828 kB / 397.2 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003204/0.2975, allocations: 74.59 kB / 397.3 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.2975, allocations: 2.297 kB / 397.3 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.2975, allocations: 7.766 kB / 397.3 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.2975, allocations: 2.188 kB / 397.3 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2975, allocations: 1.734 kB / 397.3 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009855/0.2985, allocations: 0.5037 MB / 397.8 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.508e-05/0.2986, allocations: 95.78 kB / 397.9 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.835e-05/0.2986, allocations: 8.328 kB / 397.9 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.2988, allocations: 21.58 kB / 397.9 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.586e-05/0.2989, allocations: 29.05 kB / 397.9 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.299, allocations: 14.81 kB / 397.9 MB, free: 43.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.12e-05/0.2991, allocations: 126.9 kB / 398.1 MB, free: 43.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2991, allocations: 0 / 398.1 MB, free: 43.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.2994, allocations: 60.38 kB / 398.1 MB, free: 43.7 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 9.93e-05/0.2995, allocations: 106.3 kB / 398.2 MB, free: 43.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007802/0.3003, allocations: 316.9 kB / 398.5 MB, free: 43.47 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3003, allocations: 0 / 398.5 MB, free: 43.47 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003397/0.3006, allocations: 136.4 kB / 398.7 MB, free: 43.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004446/0.3011, allocations: 61.78 kB / 398.7 MB, free: 43.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.3036, allocations: 0.8847 MB / 399.6 MB, free: 42.9 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001692/0.3038, allocations: 0.752 MB / 400.4 MB, free: 42.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.838e-05/0.3039, allocations: 19.53 kB / 400.4 MB, free: 42.2 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3039, allocations: 4 kB / 400.4 MB, free: 42.19 MB / 318.1 MB Notification: Performance of Templates: time 0.00518/0.3091, allocations: 3.028 MB / 403.4 MB, free: 40.95 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 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)