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.001525/0.001525, allocations: 182.5 kB / 12.74 MB, free: 2.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.6/1.6, allocations: 194.3 MB / 207.5 MB, free: 3.449 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03497/0.03497, allocations: 7.916 MB / 260.4 MB, free: 13.78 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.001671/0.001671, allocations: 124.4 kB / 307.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.8e-05/2.802e-05, allocations: 4 kB / 361.3 MB, free: 8.605 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2323, allocations: 46.19 MB / 407.5 MB, free: 67.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08545/0.3178, allocations: 74.59 MB / 482.1 MB, free: 8.316 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001607/0.318, allocations: 59.91 kB / 482.2 MB, free: 8.258 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01133/0.3294, allocations: 4.067 MB / 486.3 MB, free: 4.184 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3294, allocations: 0 / 486.3 MB, free: 4.184 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.783e-05/0.3295, allocations: 16 kB / 486.3 MB, free: 4.168 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.0008547/0.3303, allocations: 0.5325 MB / 486.8 MB, free: 3.586 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.3304, allocations: 8.031 kB / 486.8 MB, free: 3.578 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.865e-05/0.3304, allocations: 62.53 kB / 486.9 MB, free: 3.508 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.264e-05/0.3305, allocations: 31.62 kB / 486.9 MB, free: 3.477 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002828/0.3308, allocations: 234.6 kB / 487.1 MB, free: 3.207 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.3308, allocations: 12.44 kB / 487.1 MB, free: 3.195 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.979e-05/0.3309, allocations: 24 kB / 487.2 MB, free: 3.172 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003475/0.3312, allocations: 191.3 kB / 487.4 MB, free: 2.977 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.3313, allocations: 3.906 kB / 487.4 MB, free: 2.973 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.3313, allocations: 12 kB / 487.4 MB, free: 2.961 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.3313, allocations: 8 kB / 487.4 MB, free: 2.953 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.3316, allocations: 137.7 kB / 487.5 MB, free: 2.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.3328, allocations: 0.7091 MB / 488.2 MB, free: 2.055 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003703/0.3332, allocations: 190.6 kB / 488.4 MB, free: 1.859 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.3333, allocations: 88.86 kB / 488.5 MB, free: 1.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.3334, allocations: 4 kB / 488.5 MB, free: 1.766 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002612/0.3336, allocations: 146 kB / 488.6 MB, free: 1.613 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 2.164e-06/0.3337, allocations: 0 / 488.6 MB, free: 1.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.00152/0.3352, allocations: 0.9595 MB / 489.6 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.3352, allocations: 55.41 kB / 489.7 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.3354, allocations: 162.3 kB / 489.8 MB, free: 340 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.3354, allocations: 33.7 kB / 489.8 MB, free: 300 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.929e-05/0.3355, allocations: 136.5 kB / 490 MB, free: 156 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.327e-05/0.3356, allocations: 106.5 kB / 490.1 MB, free: 48 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.302e-05/0.3356, allocations: 12 kB / 490.1 MB, free: 36 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3357, allocations: 330.8 kB / 490.4 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.3359, allocations: 72.33 kB / 490.5 MB, free: 15.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.336, allocations: 103.4 kB / 490.6 MB, free: 15.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.3362, allocations: 114.5 kB / 490.7 MB, free: 15.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.3362, allocations: 0 / 490.7 MB, free: 15.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004107/0.3366, allocations: 302.5 kB / 491 MB, free: 15.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.3367, allocations: 33.7 kB / 491 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.3367, allocations: 0 / 491 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3367, allocations: 4 kB / 491 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000321/0.337, allocations: 79.89 kB / 491.1 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.3371, allocations: 7.922 kB / 491.1 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.3373, allocations: 32.05 kB / 491.2 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.3373, allocations: 12 kB / 491.2 MB, free: 14.92 MB / 346.7 MB Warning: Assuming fixed start value for the following 4 variables: speedSensor.w:DISCRETE(fixed = false ) "Sensed speed" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = "rad" 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" stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real springDamper.phi_rel:VARIABLE(start = 0.0 unit = "rad" 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 () * 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.0001585/0.3375, allocations: 146 kB / 491.3 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.271e-05/0.3375, allocations: 23.67 kB / 491.3 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.608e-05/0.3376, allocations: 26.78 kB / 491.4 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.3376, allocations: 4 kB / 491.4 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3376, allocations: 3.984 kB / 491.4 MB, free: 14.72 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.3376, allocations: 0 / 491.4 MB, free: 14.72 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008615/0.3385, allocations: 0.7409 MB / 492.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3385, allocations: 0 / 492.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003253/0.3388, allocations: 75.89 kB / 492.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.3389, allocations: 0 / 492.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.3389, allocations: 16.05 kB / 492.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.3389, allocations: 8 kB / 492.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3389, allocations: 0 / 492.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005473/0.3395, allocations: 464.6 kB / 492.7 MB, free: 13.33 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.258e-05/0.3395, allocations: 104.9 kB / 492.8 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.3396, allocations: 8 kB / 492.8 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.3398, allocations: 35.91 kB / 492.8 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.101e-05/0.3399, allocations: 27.92 kB / 492.8 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.3399, allocations: 11.98 kB / 492.8 MB, free: 13.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.182e-05/0.34, allocations: 136.8 kB / 493 MB, free: 12.99 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.34, allocations: 0 / 493 MB, free: 12.99 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002828/0.3403, allocations: 68 kB / 493 MB, free: 12.93 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) * 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.0008193/0.3411, allocations: 1.148 MB / 494.2 MB, free: 11.74 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003715/0.3415, allocations: 267.2 kB / 494.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3415, allocations: 0 / 494.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000177/0.3417, allocations: 119.9 kB / 494.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.342, allocations: 40.58 kB / 494.6 MB, free: 11.31 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.3433, allocations: 0.6663 MB / 495.3 MB, free: 10.6 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.3436, allocations: 0.7639 MB / 496 MB, free: 9.805 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.807e-05/0.3437, allocations: 26.05 kB / 496.1 MB, free: 9.777 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.3438, allocations: 75.42 kB / 496.1 MB, free: 9.703 MB / 346.7 MB Notification: Performance of SimCode: time 3.41e-07/0.3438, allocations: 0 / 496.1 MB, free: 9.703 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01534/0.3592, allocations: 4.831 MB / 0.4892 GB, free: 5.043 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.3594, allocations: 186.5 kB / 0.4894 GB, free: 4.824 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/2.199, allocations: 0 / 0.4894 GB, free: 4.824 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)