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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001302/0.001301, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.67/1.67, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04118/0.04118, allocations: 8.097 MB / 278.5 MB, free: 13.22 MB / 238.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.0005285/0.0005285, allocations: 15.12 kB / 338.3 MB, free: 26.94 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1444, allocations: 49.28 MB / 387.6 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.002685/0.1471, allocations: 1.953 MB / 389.6 MB, free: 7.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.1482, allocations: 0.6597 MB / 390.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.1483, allocations: 11.94 kB / 390.2 MB, free: 6.961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.871e-05/0.1484, allocations: 19.84 kB / 390.3 MB, free: 6.941 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001737/0.1485, allocations: 83.73 kB / 390.3 MB, free: 6.859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.1488, allocations: 59.83 kB / 390.4 MB, free: 6.801 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002539/0.149, allocations: 195.6 kB / 390.6 MB, free: 6.609 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.1492, allocations: 73.33 kB / 390.7 MB, free: 6.531 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.1493, allocations: 91.69 kB / 390.7 MB, free: 6.441 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.1495, allocations: 107.5 kB / 390.8 MB, free: 6.336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.556e-05/0.1495, allocations: 12 kB / 390.9 MB, free: 6.324 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.662e-05/0.1496, allocations: 16 kB / 390.9 MB, free: 6.309 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.935e-05/0.1496, allocations: 35.84 kB / 390.9 MB, free: 6.273 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.431e-05/0.1497, allocations: 69.58 kB / 391 MB, free: 6.199 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001921/0.1499, allocations: 195.7 kB / 391.2 MB, free: 6.008 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.1499, allocations: 0 / 391.2 MB, free: 6.008 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1499, allocations: 0 / 391.2 MB, free: 6.008 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.347e-06/0.1499, allocations: 4 kB / 391.2 MB, free: 6.004 MB / 286.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.0008975/0.1508, allocations: 0.5474 MB / 391.7 MB, free: 5.402 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1509, allocations: 12.03 kB / 391.7 MB, free: 5.391 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.342e-05/0.151, allocations: 58.53 kB / 391.8 MB, free: 5.324 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.627e-05/0.151, allocations: 31.66 kB / 391.8 MB, free: 5.293 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002553/0.1513, allocations: 242.6 kB / 392.1 MB, free: 5.016 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.1513, allocations: 16.44 kB / 392.1 MB, free: 5 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.75e-05/0.1514, allocations: 31.84 kB / 392.1 MB, free: 4.969 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005017/0.1519, allocations: 231.2 kB / 392.3 MB, free: 4.734 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.1519, allocations: 0 / 392.3 MB, free: 4.734 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.386e-05/0.1519, allocations: 12 kB / 392.3 MB, free: 4.723 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.1519, allocations: 4 kB / 392.3 MB, free: 4.719 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00056/0.1525, allocations: 221.6 kB / 392.6 MB, free: 4.504 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.1535, allocations: 0.67 MB / 393.2 MB, free: 3.781 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007149/0.1543, allocations: 278.4 kB / 393.5 MB, free: 3.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.1543, allocations: 7.984 kB / 393.5 MB, free: 3.492 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004408/0.1547, allocations: 181.1 kB / 393.7 MB, free: 3.305 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.623e-06/0.1548, allocations: 3.938 kB / 393.7 MB, free: 3.301 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002547/0.1573, allocations: 1.259 MB / 395 MB, free: 1.953 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.1574, allocations: 63.39 kB / 395 MB, free: 1.879 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.1575, allocations: 186.8 kB / 395.2 MB, free: 1.688 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.1576, allocations: 33.7 kB / 395.2 MB, free: 1.648 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.256e-05/0.1577, allocations: 132.8 kB / 395.4 MB, free: 1.516 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.082e-05/0.1577, allocations: 106.4 kB / 395.5 MB, free: 1.41 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.367e-05/0.1577, allocations: 8 kB / 395.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.596e-05/0.1578, allocations: 334.8 kB / 395.8 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002833/0.1581, allocations: 112.2 kB / 395.9 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.1584, allocations: 147.2 kB / 396.1 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003179/0.1588, allocations: 158.2 kB / 396.2 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1588, allocations: 4 kB / 396.2 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007224/0.1595, allocations: 378.5 kB / 396.6 MB, free: 260 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.1596, allocations: 40.16 kB / 396.6 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1596, allocations: 4 kB / 396.6 MB, free: 212 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.1596, allocations: 0 / 396.6 MB, free: 212 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002959/0.1599, allocations: 79.88 kB / 396.7 MB, free: 132 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.1599, allocations: 8.031 kB / 396.7 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002182/0.1601, allocations: 31.97 kB / 396.7 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.1602, allocations: 8 kB / 396.7 MB, free: 84 kB / 286.1 MB Warning: Assuming fixed start value for the following 4 variables: speedSensor.w:DISCRETE(flow=false 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.0002226/0.1604, allocations: 175.6 kB / 396.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.921e-05/0.1604, allocations: 19.81 kB / 396.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.206e-05/0.1605, allocations: 38.58 kB / 397 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.1605, allocations: 0 / 397 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.1605, allocations: 4 kB / 397 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1605, allocations: 0 / 397 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.1617, allocations: 0.8111 MB / 397.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1618, allocations: 4 kB / 397.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003174/0.1621, allocations: 79.95 kB / 397.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.1621, allocations: 3.984 kB / 397.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.1621, allocations: 8 kB / 397.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.1621, allocations: 4 kB / 397.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.1621, allocations: 0 / 397.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.1632, allocations: 0.5897 MB / 398.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.369e-05/0.1632, allocations: 92.92 kB / 398.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.1633, allocations: 8 kB / 398.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/0.1635, allocations: 32.02 kB / 398.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.548e-05/0.1636, allocations: 31.91 kB / 398.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.1636, allocations: 8 kB / 398.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.943e-05/0.1637, allocations: 132.4 kB / 398.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1637, allocations: 0 / 398.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000303/0.1641, allocations: 64 kB / 398.8 MB, free: 13.86 MB / 302.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 (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.001353/0.1654, allocations: 1.277 MB / 400.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006946/0.1661, allocations: 335.2 kB / 400.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1661, allocations: 4 kB / 400.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003441/0.1665, allocations: 164 kB / 400.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003271/0.1668, allocations: 44.05 kB / 400.6 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004149/0.171, allocations: 2.255 MB / 402.9 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.1713, allocations: 0.7639 MB / 403.7 MB, free: 8.891 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000105/0.1714, allocations: 22.28 kB / 403.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.1715, allocations: 75.42 kB / 403.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1715, allocations: 0 / 403.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01468/0.1862, allocations: 4.817 MB / 408.6 MB, free: 4.129 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/0.1864, allocations: 224.1 kB / 408.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.067, allocations: 3.938 kB / 408.8 MB, free: 3.879 MB / 302.1 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) Environment - environmentSimulation: