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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) 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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.007319/0.007319, allocations: 174.7 kB / 15.12 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.286/1.286, allocations: 194.5 MB / 210.3 MB, free: 8.512 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03721/0.03721, allocations: 8.084 MB / 263.6 MB, free: 3.129 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001548/0.001548, allocations: 136.2 kB / 310.6 MB, free: 27.14 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003347/0.0003347, allocations: 12 kB / 367.4 MB, free: 2.32 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.1931, allocations: 46.19 MB / 413.5 MB, free: 47.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08286/0.276, allocations: 74.68 MB / 488.2 MB, free: 11.12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001645/0.2762, allocations: 47.98 kB / 488.3 MB, free: 11.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01106/0.2873, allocations: 4.086 MB / 492.4 MB, free: 6.984 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2874, allocations: 0 / 492.4 MB, free: 6.984 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.2874, allocations: 8 kB / 492.4 MB, free: 6.977 MB / 330.7 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.000884/0.2883, allocations: 0.5602 MB / 492.9 MB, free: 6.363 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.2883, allocations: 12.03 kB / 492.9 MB, free: 6.352 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.147e-05/0.2884, allocations: 50.55 kB / 493 MB, free: 6.293 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.475e-05/0.2884, allocations: 31.7 kB / 493 MB, free: 6.262 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.2887, allocations: 236.1 kB / 493.3 MB, free: 5.992 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.2887, allocations: 16.44 kB / 493.3 MB, free: 5.977 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.545e-05/0.2888, allocations: 27.98 kB / 493.3 MB, free: 5.949 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004688/0.2893, allocations: 231.2 kB / 493.5 MB, free: 5.719 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.2893, allocations: 11.83 kB / 493.5 MB, free: 5.707 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.502e-05/0.2893, allocations: 12 kB / 493.5 MB, free: 5.695 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.2893, allocations: 7.938 kB / 493.6 MB, free: 5.688 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005322/0.2899, allocations: 217.6 kB / 493.8 MB, free: 5.477 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.291, allocations: 0.7091 MB / 494.5 MB, free: 4.711 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006642/0.2917, allocations: 286.6 kB / 494.8 MB, free: 4.426 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.2917, allocations: 4 kB / 494.8 MB, free: 4.422 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004166/0.2922, allocations: 181.1 kB / 494.9 MB, free: 4.234 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 2.044e-06/0.2922, allocations: 0 / 494.9 MB, free: 4.234 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.002404/0.2946, allocations: 1.269 MB / 496.2 MB, free: 2.875 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.2946, allocations: 55.41 kB / 496.3 MB, free: 2.809 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.2948, allocations: 160 kB / 496.4 MB, free: 2.648 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.2948, allocations: 33.7 kB / 496.4 MB, free: 2.609 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.361e-05/0.2949, allocations: 140.7 kB / 496.6 MB, free: 2.469 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.913e-05/0.2949, allocations: 106.5 kB / 496.7 MB, free: 2.363 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.367e-05/0.295, allocations: 4 kB / 496.7 MB, free: 2.359 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.2951, allocations: 334.8 kB / 497 MB, free: 2.023 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.2954, allocations: 112.2 kB / 497.1 MB, free: 1.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002874/0.2957, allocations: 145.8 kB / 497.3 MB, free: 1.762 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.296, allocations: 154.7 kB / 497.4 MB, free: 1.605 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.296, allocations: 0 / 497.4 MB, free: 1.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007325/0.2967, allocations: 386.8 kB / 497.8 MB, free: 1.215 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.444e-05/0.2968, allocations: 37.75 kB / 497.8 MB, free: 1.172 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2968, allocations: 4 kB / 497.8 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.2968, allocations: 4 kB / 497.8 MB, free: 1.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003042/0.2971, allocations: 79.89 kB / 497.9 MB, free: 1.086 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.2971, allocations: 0 / 497.9 MB, free: 1.086 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.2973, allocations: 35.97 kB / 498 MB, free: 1.051 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.2974, allocations: 16 kB / 498 MB, free: 1.035 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: speedSensor.w:DISCRETE(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.0001946/0.2976, allocations: 160.5 kB / 498.1 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.525e-05/0.2976, allocations: 27.67 kB / 498.2 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.446e-05/0.2977, allocations: 26.66 kB / 498.2 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.2977, allocations: 7.938 kB / 498.2 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.2977, allocations: 0 / 498.2 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.2977, allocations: 7.922 kB / 498.2 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.2989, allocations: 0.8167 MB / 499 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2989, allocations: 0 / 499 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003287/0.2993, allocations: 79.89 kB / 499.1 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.2993, allocations: 0 / 499.1 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.2993, allocations: 8 kB / 499.1 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.2993, allocations: 64 / 499.1 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.2993, allocations: 8 kB / 499.1 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.3003, allocations: 0.5824 MB / 499.7 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.201e-05/0.3004, allocations: 104.9 kB / 499.8 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.483e-05/0.3005, allocations: 8 kB / 499.8 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.3007, allocations: 27.97 kB / 499.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.652e-05/0.3008, allocations: 36 kB / 499.9 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/0.3008, allocations: 11.98 kB / 499.9 MB, free: 15.01 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.184e-05/0.3009, allocations: 132.9 kB / 0.4883 GB, free: 14.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3009, allocations: 0 / 0.4883 GB, free: 14.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002979/0.3012, allocations: 68 kB / 0.4884 GB, free: 14.81 MB / 346.7 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.001352/0.3026, allocations: 1.276 MB / 0.4896 GB, free: 13.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006916/0.3033, allocations: 343.2 kB / 0.4899 GB, free: 13.15 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3033, allocations: 0 / 0.4899 GB, free: 13.15 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003352/0.3037, allocations: 160 kB / 0.4901 GB, free: 12.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.304, allocations: 35.45 kB / 0.4901 GB, free: 12.96 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004142/0.3081, allocations: 2.271 MB / 0.4923 GB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.3085, allocations: 0.76 MB / 0.4931 GB, free: 9.832 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.3087, allocations: 30.22 kB / 0.4931 GB, free: 9.801 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.3088, allocations: 79.41 kB / 0.4932 GB, free: 9.723 MB / 346.7 MB Notification: Performance of SimCode: time 5.01e-07/0.3088, allocations: 0 / 0.4932 GB, free: 9.723 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01597/0.3248, allocations: 4.837 MB / 0.4979 GB, free: 5.066 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/0.325, allocations: 209.5 kB / 0.4981 GB, free: 4.832 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/2.063, allocations: 0 / 0.4981 GB, free: 4.832 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)