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.00128/0.001281, allocations: 108.1 kB / 16.37 MB, free: 6.477 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.001248/0.001249, allocations: 194.7 kB / 17.31 MB, free: 5.824 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.547/1.547, 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.04215/0.04215, allocations: 8.111 MB / 278.6 MB, free: 3.973 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.001468/0.001468, allocations: 67.91 kB / 338.6 MB, free: 7.848 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2953, allocations: 48.27 MB / 386.9 MB, free: 51.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.005313/0.3007, allocations: 2.42 MB / 389.3 MB, free: 49.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.3022, allocations: 0.6767 MB / 390 MB, free: 49.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001769/0.3024, allocations: 7.562 kB / 390 MB, free: 49.37 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001731/0.3026, allocations: 32.12 kB / 390.1 MB, free: 49.35 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00021/0.3029, allocations: 74.98 kB / 390.1 MB, free: 49.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.3032, allocations: 76.53 kB / 390.2 MB, free: 49.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004292/0.3036, allocations: 303 kB / 390.5 MB, free: 49.11 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.3039, allocations: 96.3 kB / 390.6 MB, free: 49.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.3041, allocations: 115.8 kB / 390.7 MB, free: 49.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.3044, allocations: 128 kB / 390.8 MB, free: 48.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.318e-05/0.3044, allocations: 22.41 kB / 390.8 MB, free: 48.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.023e-05/0.3045, allocations: 25.16 kB / 390.9 MB, free: 48.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.333e-05/0.3046, allocations: 52.89 kB / 390.9 MB, free: 48.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.3047, allocations: 136.8 kB / 391.1 MB, free: 48.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004119/0.3052, allocations: 274.2 kB / 391.3 MB, free: 48.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3052, allocations: 3.938 kB / 391.3 MB, free: 48.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3052, allocations: 3.188 kB / 391.3 MB, free: 48.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.3052, allocations: 0 / 391.3 MB, free: 48.73 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.001278/0.3065, allocations: 0.5747 MB / 391.9 MB, free: 48.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/0.3066, allocations: 14.64 kB / 391.9 MB, free: 48.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.555e-05/0.3067, allocations: 26.91 kB / 391.9 MB, free: 48.22 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004786/0.3072, allocations: 259.7 kB / 392.2 MB, free: 47.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.3072, allocations: 17.81 kB / 392.2 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.567e-05/0.3073, allocations: 24.89 kB / 392.2 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007926/0.3081, allocations: 225.6 kB / 392.5 MB, free: 47.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.3081, allocations: 2.891 kB / 392.5 MB, free: 47.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/0.3082, allocations: 11.97 kB / 392.5 MB, free: 47.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.3082, allocations: 5.406 kB / 392.5 MB, free: 47.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008711/0.3091, allocations: 194.8 kB / 392.7 MB, free: 47.81 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.3106, allocations: 0.6688 MB / 393.3 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009287/0.3115, allocations: 248.9 kB / 393.6 MB, free: 47.28 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004135/0.312, allocations: 119.2 kB / 393.7 MB, free: 47.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.312, allocations: 2.094 kB / 393.7 MB, free: 47.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005934/0.3126, allocations: 178 kB / 393.9 MB, free: 47.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 2.425e-06/0.3126, allocations: 0 / 393.9 MB, free: 47.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003622/0.3163, allocations: 1.192 MB / 395.1 MB, free: 46.44 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.3163, allocations: 60.19 kB / 395.1 MB, free: 46.37 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.3165, allocations: 186.8 kB / 395.3 MB, free: 46.24 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.3166, allocations: 33.3 kB / 395.3 MB, free: 46.21 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.569e-05/0.3167, allocations: 137.8 kB / 395.5 MB, free: 46.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.336e-05/0.3168, allocations: 103.7 kB / 395.6 MB, free: 46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.3169, allocations: 57.2 kB / 395.6 MB, free: 45.97 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.313e-05/0.317, allocations: 332.1 kB / 396 MB, free: 45.65 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000406/0.3174, allocations: 103.2 kB / 396.1 MB, free: 45.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004297/0.3179, allocations: 132.7 kB / 396.2 MB, free: 45.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/0.3197, allocations: 0.551 MB / 396.7 MB, free: 45.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3197, allocations: 0 / 396.7 MB, free: 45.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001097/0.3208, allocations: 357 kB / 397.1 MB, free: 45.13 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.885e-05/0.3209, allocations: 38.59 kB / 397.1 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.3209, allocations: 3.984 kB / 397.1 MB, free: 45.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.05e-05/0.321, allocations: 4.844 kB / 397.1 MB, free: 45.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005112/0.3215, allocations: 78.88 kB / 397.2 MB, free: 45.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.3215, allocations: 2.062 kB / 397.2 MB, free: 45.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003696/0.3219, allocations: 24.11 kB / 397.2 MB, free: 45.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/0.322, allocations: 11.66 kB / 397.3 MB, free: 45.07 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: 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.0004459/0.3224, allocations: 173.7 kB / 397.4 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.579e-05/0.3225, allocations: 26.28 kB / 397.4 MB, free: 44.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.605e-05/0.3226, allocations: 28.31 kB / 397.5 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.3226, allocations: 4.031 kB / 397.5 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/0.3227, allocations: 0.6562 kB / 397.5 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.3227, allocations: 2.656 kB / 397.5 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/0.3247, allocations: 0.7829 MB / 398.3 MB, free: 44.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.3247, allocations: 2.844 kB / 398.3 MB, free: 44.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005323/0.3252, allocations: 72.08 kB / 398.3 MB, free: 44.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.193e-06/0.3252, allocations: 1.656 kB / 398.3 MB, free: 44.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/0.3253, allocations: 11.78 kB / 398.4 MB, free: 44.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.371e-06/0.3253, allocations: 3.891 kB / 398.4 MB, free: 44.36 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.3253, allocations: 0 / 398.4 MB, free: 44.36 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001643/0.327, allocations: 0.5364 MB / 398.9 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.134e-05/0.3271, allocations: 100.7 kB / 399 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.675e-05/0.3271, allocations: 8.297 kB / 399 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003273/0.3275, allocations: 22.61 kB / 399 MB, free: 43.95 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.3276, allocations: 33.27 kB / 399.1 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.408e-05/0.3277, allocations: 11.61 kB / 399.1 MB, free: 43.94 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001745/0.3279, allocations: 135.6 kB / 399.2 MB, free: 43.84 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3279, allocations: 0 / 399.2 MB, free: 43.84 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005592/0.3284, allocations: 63.52 kB / 399.3 MB, free: 43.84 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: 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 (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.0001546/0.3286, allocations: 114.6 kB / 399.4 MB, free: 43.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001079/0.3297, allocations: 328 kB / 399.7 MB, free: 43.6 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3297, allocations: 0 / 399.7 MB, free: 43.6 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005045/0.3302, allocations: 143 kB / 399.8 MB, free: 43.56 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006658/0.3309, allocations: 58.7 kB / 399.9 MB, free: 43.54 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004095/0.335, allocations: 0.8766 MB / 400.8 MB, free: 43.06 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.3355, allocations: 0.753 MB / 401.5 MB, free: 42.36 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001946/0.3357, allocations: 25.39 kB / 401.5 MB, free: 42.35 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.3358, allocations: 23.61 kB / 401.6 MB, free: 42.34 MB / 318.1 MB Notification: Performance of SimCode: time 1.513e-06/0.3358, allocations: 1.312 kB / 401.6 MB, free: 42.34 MB / 318.1 MB Notification: Performance of Templates: time 0.01022/0.3461, allocations: 2.938 MB / 404.5 MB, free: 41.08 MB / 318.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 -s cvode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)