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/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,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",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.001334/0.001334, allocations: 181.9 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.473/1.473, allocations: 194.3 MB / 207.5 MB, free: 3.457 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03579/0.03579, allocations: 7.898 MB / 260.4 MB, free: 13.79 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.001693/0.001693, allocations: 116.4 kB / 307.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.852e-05/3.877e-05, allocations: 3.938 kB / 361.3 MB, free: 8.609 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2287, allocations: 46.19 MB / 407.5 MB, free: 67.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08432/0.3131, allocations: 74.61 MB / 482.1 MB, free: 8.305 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001625/0.3133, allocations: 51.98 kB / 482.2 MB, free: 8.254 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01092/0.3242, allocations: 4.012 MB / 486.2 MB, free: 4.234 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3242, allocations: 0 / 486.2 MB, free: 4.234 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.3243, allocations: 8 kB / 486.2 MB, free: 4.227 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.0007898/0.3251, allocations: 0.5233 MB / 486.7 MB, free: 3.656 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3251, allocations: 16.03 kB / 486.8 MB, free: 3.641 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.3252, allocations: 54.53 kB / 486.8 MB, free: 3.578 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.057e-05/0.3253, allocations: 31.84 kB / 486.8 MB, free: 3.547 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002473/0.3256, allocations: 240.2 kB / 487.1 MB, free: 3.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.3256, allocations: 16.44 kB / 487.1 MB, free: 3.254 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.804e-05/0.3256, allocations: 24 kB / 487.1 MB, free: 3.23 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003193/0.326, allocations: 183.3 kB / 487.3 MB, free: 3.043 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.326, allocations: 7.891 kB / 487.3 MB, free: 3.035 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.326, allocations: 12 kB / 487.3 MB, free: 3.023 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.326, allocations: 8 kB / 487.3 MB, free: 3.016 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002365/0.3263, allocations: 133.7 kB / 487.5 MB, free: 2.887 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.3274, allocations: 0.7606 MB / 488.2 MB, free: 2.062 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003648/0.3278, allocations: 183.4 kB / 488.4 MB, free: 1.875 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.328, allocations: 92.84 kB / 488.5 MB, free: 1.781 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.328, allocations: 4 kB / 488.5 MB, free: 1.777 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002194/0.3282, allocations: 127.3 kB / 488.6 MB, free: 1.641 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 1.603e-06/0.3282, allocations: 0 / 488.6 MB, free: 1.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.001311/0.3295, allocations: 0.9 MB / 489.5 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.3296, allocations: 59.39 kB / 489.6 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.3297, allocations: 158.6 kB / 489.7 MB, free: 428 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.3298, allocations: 29.7 kB / 489.8 MB, free: 392 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.879e-05/0.3299, allocations: 140.5 kB / 489.9 MB, free: 244 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.607e-05/0.3299, allocations: 98.58 kB / 490 MB, free: 144 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.109e-05/0.33, allocations: 11.94 kB / 490 MB, free: 132 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3301, allocations: 326.8 kB / 490.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.3302, allocations: 64 kB / 490.4 MB, free: 15.74 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.3303, allocations: 85.7 kB / 490.5 MB, free: 15.65 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.3305, allocations: 102.4 kB / 490.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.3305, allocations: 0 / 490.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003785/0.3309, allocations: 280.2 kB / 490.8 MB, free: 15.26 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/0.3309, allocations: 33.73 kB / 490.9 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.331, allocations: 4 kB / 490.9 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.331, allocations: 3.938 kB / 490.9 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.3313, allocations: 79.89 kB / 491 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.3313, allocations: 0 / 491 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.3315, allocations: 35.97 kB / 491 MB, free: 15.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.3315, allocations: 4 kB / 491 MB, free: 15.09 MB / 346.7 MB Warning: Assuming fixed start value for the following 4 variables: damper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" 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: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$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 (35): * Single equations (assignments): 34 * 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.0001712/0.3317, allocations: 149.3 kB / 491.1 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.039e-05/0.3317, allocations: 23.67 kB / 491.2 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.708e-05/0.3318, allocations: 30.78 kB / 491.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3318, allocations: 4 kB / 491.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.3318, allocations: 4 kB / 491.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.3319, allocations: 3.984 kB / 491.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007855/0.3326, allocations: 0.6487 MB / 491.9 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3327, allocations: 4 kB / 491.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/0.333, allocations: 75.94 kB / 491.9 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.333, allocations: 0 / 491.9 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.333, allocations: 4 kB / 491.9 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.333, allocations: 0 / 491.9 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.333, allocations: 3.938 kB / 491.9 MB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005364/0.3336, allocations: 448.9 kB / 492.4 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.712e-05/0.3336, allocations: 88.92 kB / 492.5 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.538e-05/0.3337, allocations: 12.03 kB / 492.5 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002386/0.3339, allocations: 27.98 kB / 492.5 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.797e-05/0.334, allocations: 31.91 kB / 492.5 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.334, allocations: 8 kB / 492.5 MB, free: 13.43 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.812e-05/0.3341, allocations: 137.1 kB / 492.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3342, allocations: 3.938 kB / 492.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002773/0.3344, allocations: 71.92 kB / 492.8 MB, free: 13.22 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: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * 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 (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.0008265/0.3353, allocations: 1.112 MB / 493.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003589/0.3356, allocations: 235.4 kB / 494.1 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3357, allocations: 4 kB / 494.1 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.3358, allocations: 108.3 kB / 494.2 MB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.3361, allocations: 36.16 kB / 494.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.3374, allocations: 0.666 MB / 494.9 MB, free: 10.97 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.3377, allocations: 0.7555 MB / 495.7 MB, free: 10.19 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.257e-05/0.3378, allocations: 22.06 kB / 495.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.3379, allocations: 75.42 kB / 495.8 MB, free: 10.09 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.338, allocations: 0 / 495.8 MB, free: 10.09 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01512/0.3531, allocations: 4.621 MB / 0.4887 GB, free: 5.605 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/0.3533, allocations: 187.2 kB / 0.4888 GB, free: 5.371 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/2.181, allocations: 0 / 0.4888 GB, free: 5.371 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)