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.006193/0.006193, allocations: 178 kB / 15.12 MB, free: 5.973 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.362/1.362, allocations: 194.5 MB / 210.3 MB, free: 7.621 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03662/0.03662, allocations: 8.104 MB / 263.6 MB, free: 2.23 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.001576/0.001576, allocations: 115 kB / 310.6 MB, free: 27.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003336/0.0003335, allocations: 12 kB / 367.4 MB, free: 2.188 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2042, allocations: 46.19 MB / 413.5 MB, free: 47.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0855/0.2897, allocations: 74.7 MB / 488.2 MB, free: 11.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001678/0.2899, allocations: 43.98 kB / 488.3 MB, free: 11.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0113/0.3013, allocations: 4.024 MB / 492.3 MB, free: 6.988 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3013, allocations: 0 / 492.3 MB, free: 6.988 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.827e-05/0.3013, allocations: 4 kB / 492.3 MB, free: 6.984 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.0009554/0.3023, allocations: 0.5557 MB / 492.9 MB, free: 6.375 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.3024, allocations: 8.031 kB / 492.9 MB, free: 6.367 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.275e-05/0.3024, allocations: 54.55 kB / 492.9 MB, free: 6.305 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.711e-05/0.3025, allocations: 27.62 kB / 493 MB, free: 6.277 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.3028, allocations: 243.5 kB / 493.2 MB, free: 5.996 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.3028, allocations: 16.44 kB / 493.2 MB, free: 5.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.501e-05/0.3029, allocations: 20 kB / 493.2 MB, free: 5.961 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005108/0.3034, allocations: 235.2 kB / 493.5 MB, free: 5.727 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.3034, allocations: 3.906 kB / 493.5 MB, free: 5.723 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.62e-05/0.3035, allocations: 12 kB / 493.5 MB, free: 5.711 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.3035, allocations: 4 kB / 493.5 MB, free: 5.707 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005711/0.304, allocations: 221.6 kB / 493.7 MB, free: 5.492 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.3053, allocations: 0.7655 MB / 494.5 MB, free: 4.664 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000732/0.306, allocations: 269.6 kB / 494.7 MB, free: 4.395 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.3061, allocations: 8 kB / 494.7 MB, free: 4.387 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004209/0.3065, allocations: 172.9 kB / 494.9 MB, free: 4.207 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 1.723e-06/0.3065, allocations: 0 / 494.9 MB, free: 4.207 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.002461/0.309, allocations: 1.186 MB / 496.1 MB, free: 2.934 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.3091, allocations: 59.39 kB / 496.1 MB, free: 2.863 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.3092, allocations: 162.6 kB / 496.3 MB, free: 2.691 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.3092, allocations: 33.7 kB / 496.3 MB, free: 2.652 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.831e-05/0.3093, allocations: 144.6 kB / 496.5 MB, free: 2.508 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.063e-05/0.3094, allocations: 98.64 kB / 496.6 MB, free: 2.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.329e-05/0.3094, allocations: 8 kB / 496.6 MB, free: 2.402 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3096, allocations: 330.8 kB / 496.9 MB, free: 2.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002779/0.3099, allocations: 106.6 kB / 497 MB, free: 1.969 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/0.3102, allocations: 131.2 kB / 497.1 MB, free: 1.836 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.3105, allocations: 146.4 kB / 497.3 MB, free: 1.688 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.3105, allocations: 4 kB / 497.3 MB, free: 1.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007126/0.3112, allocations: 356.1 kB / 497.6 MB, free: 1.324 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.958e-05/0.3113, allocations: 33.66 kB / 497.7 MB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3113, allocations: 0 / 497.7 MB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.3113, allocations: 8.031 kB / 497.7 MB, free: 1.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003063/0.3116, allocations: 75.89 kB / 497.8 MB, free: 1.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.3116, allocations: 4 kB / 497.8 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.3118, allocations: 27.97 kB / 497.8 MB, free: 1.172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.3119, allocations: 12 kB / 497.8 MB, free: 1.16 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: damper.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 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: 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 () * Number of clocked 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.0002142/0.3121, allocations: 172.2 kB / 498 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.296e-05/0.3121, allocations: 23.72 kB / 498 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.388e-05/0.3122, allocations: 38.59 kB / 498 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3122, allocations: 0 / 498 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3122, allocations: 4 kB / 498 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3122, allocations: 0 / 498 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.3134, allocations: 0.7422 MB / 498.8 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3134, allocations: 0 / 498.8 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003152/0.3137, allocations: 71.95 kB / 498.8 MB, free: 52 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.3137, allocations: 0 / 498.8 MB, free: 52 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/0.3138, allocations: 11.94 kB / 498.9 MB, free: 40 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3138, allocations: 0 / 498.9 MB, free: 40 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3138, allocations: 4 kB / 498.9 MB, free: 36 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.3148, allocations: 0.5555 MB / 499.4 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.753e-05/0.3149, allocations: 96.95 kB / 499.5 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/0.3149, allocations: 4 kB / 499.5 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/0.3152, allocations: 31.97 kB / 499.5 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.492e-05/0.3153, allocations: 31.86 kB / 499.6 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.3153, allocations: 15.98 kB / 499.6 MB, free: 15.25 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.912e-05/0.3154, allocations: 133.2 kB / 499.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3154, allocations: 0 / 499.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003048/0.3157, allocations: 64 kB / 499.8 MB, free: 15.06 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) * Number of clocked states: 0 () * 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.001297/0.317, allocations: 1.242 MB / 0.4893 GB, free: 13.78 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006606/0.3177, allocations: 327.2 kB / 0.4896 GB, free: 13.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3177, allocations: 0 / 0.4896 GB, free: 13.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003242/0.318, allocations: 152.2 kB / 0.4897 GB, free: 13.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.3183, allocations: 48.64 kB / 0.4898 GB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004065/0.3224, allocations: 2.039 MB / 0.4918 GB, free: 11.15 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.3227, allocations: 0.7635 MB / 0.4925 GB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.3228, allocations: 18.3 kB / 0.4925 GB, free: 10.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.323, allocations: 75.41 kB / 0.4926 GB, free: 10.27 MB / 346.7 MB Notification: Performance of SimCode: time 3.91e-07/0.323, allocations: 4 kB / 0.4926 GB, free: 10.27 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.3393, allocations: 4.618 MB / 0.4971 GB, free: 5.797 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/0.3395, allocations: 208.9 kB / 0.4973 GB, free: 5.551 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.668/2.008, allocations: 0 / 0.4973 GB, free: 5.551 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)