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/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,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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009601/0.009601, allocations: 101.3 kB / 15.73 MB, free: 6.043 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.001377/0.001377, allocations: 197.2 kB / 16.68 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.494/1.494, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04147/0.04147, allocations: 8.109 MB / 278 MB, free: 13.07 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.00154/0.00154, allocations: 67.89 kB / 386.2 MB, free: 9.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3063, allocations: 48.3 MB / 434.5 MB, free: 7.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.00359/0.3099, allocations: 2.403 MB / 436.9 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.311, allocations: 0.6273 MB / 437.5 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.3112, allocations: 7.625 kB / 437.5 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000179/0.3114, allocations: 35.55 kB / 437.5 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.3115, allocations: 73.05 kB / 437.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002673/0.3118, allocations: 73.09 kB / 437.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003424/0.3121, allocations: 298.2 kB / 438 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.3124, allocations: 98.41 kB / 438.1 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.3125, allocations: 108.7 kB / 438.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.3127, allocations: 125.6 kB / 438.3 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.527e-05/0.3127, allocations: 27.38 kB / 438.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.278e-05/0.3128, allocations: 23.38 kB / 438.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.403e-05/0.3128, allocations: 56.47 kB / 438.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.313, allocations: 129.8 kB / 438.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003624/0.3133, allocations: 267.7 kB / 438.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3134, allocations: 0.6562 kB / 438.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3134, allocations: 0 / 438.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.054e-06/0.3134, allocations: 0 / 438.8 MB, free: 4.676 MB / 318.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.0009458/0.3143, allocations: 0.5754 MB / 439.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.3144, allocations: 9.594 kB / 439.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.903e-05/0.3144, allocations: 59.55 kB / 439.4 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.514e-05/0.3145, allocations: 30.53 kB / 439.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.3149, allocations: 240.9 kB / 439.7 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.3149, allocations: 18.39 kB / 439.7 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.702e-05/0.315, allocations: 24.62 kB / 439.7 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.3155, allocations: 227.3 kB / 440 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.3155, allocations: 5.75 kB / 440 MB, free: 3.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.469e-05/0.3156, allocations: 11.06 kB / 440 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.3156, allocations: 9.359 kB / 440 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005575/0.3162, allocations: 201.3 kB / 440.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.3172, allocations: 0.7095 MB / 440.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007473/0.318, allocations: 245.6 kB / 441.1 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003381/0.3183, allocations: 117.1 kB / 441.2 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.3184, allocations: 7 kB / 441.3 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004848/0.3189, allocations: 165.2 kB / 441.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 2.855e-06/0.3189, allocations: 4 kB / 441.4 MB, free: 2.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002864/0.3218, allocations: 1.112 MB / 442.5 MB, free: 2.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.3218, allocations: 60.08 kB / 442.6 MB, free: 2.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.322, allocations: 179 kB / 442.8 MB, free: 2.074 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.3221, allocations: 31.08 kB / 442.8 MB, free: 2.039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.726e-05/0.3222, allocations: 151.6 kB / 442.9 MB, free: 1.906 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.298e-05/0.3222, allocations: 93.98 kB / 443 MB, free: 1.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.044e-05/0.3223, allocations: 50.08 kB / 443.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.873e-05/0.3224, allocations: 333.3 kB / 443.4 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003048/0.3227, allocations: 91.83 kB / 443.5 MB, free: 1.453 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003569/0.3231, allocations: 129.3 kB / 443.6 MB, free: 1.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.3245, allocations: 0.5046 MB / 444.1 MB, free: 1.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3246, allocations: 0 / 444.1 MB, free: 1.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007644/0.3253, allocations: 332.9 kB / 444.5 MB, free: 1.012 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.318e-05/0.3254, allocations: 41.27 kB / 444.5 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3254, allocations: 0 / 444.5 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/0.3254, allocations: 2.812 kB / 444.5 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003319/0.3258, allocations: 69.08 kB / 444.6 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.3258, allocations: 1.344 kB / 444.6 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.326, allocations: 23.73 kB / 444.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.3261, allocations: 15.14 kB / 444.6 MB, free: 0.957 MB / 318.1 MB Warning: Assuming fixed start value for the following 4 variables: 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 springDamper.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 damper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" 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 ($PRE.trapezoid.count,$PRE.trapezoid.T_start,trapezoid.count,trapezoid.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002668/0.3263, allocations: 169.4 kB / 444.8 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.634e-05/0.3264, allocations: 22.22 kB / 444.8 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.702e-05/0.3265, allocations: 31.73 kB / 444.8 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.3265, allocations: 4.219 kB / 444.8 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.3265, allocations: 0 / 444.8 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.3265, allocations: 1.781 kB / 444.8 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001467/0.328, allocations: 0.7161 MB / 445.5 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.328, allocations: 1 kB / 445.5 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003576/0.3284, allocations: 66.89 kB / 445.6 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.3284, allocations: 2.031 kB / 445.6 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/0.3284, allocations: 11.16 kB / 445.6 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/0.3284, allocations: 6.922 kB / 445.6 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3284, allocations: 0 / 445.6 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.3295, allocations: 0.5054 MB / 446.1 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.142e-05/0.3296, allocations: 97.06 kB / 446.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.256e-05/0.3297, allocations: 11.56 kB / 446.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002177/0.3299, allocations: 25.8 kB / 446.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.372e-05/0.33, allocations: 29.06 kB / 446.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.33, allocations: 9.828 kB / 446.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001083/0.3301, allocations: 134.1 kB / 446.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3301, allocations: 1.188 kB / 446.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003304/0.3305, allocations: 61.61 kB / 446.5 MB, free: 15.77 MB / 334.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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001329/0.3318, allocations: 1.035 MB / 447.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007123/0.3325, allocations: 293.6 kB / 447.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3325, allocations: 1.188 kB / 447.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003343/0.3329, allocations: 146.7 kB / 448 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000438/0.3333, allocations: 54.84 kB / 448 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00515/0.3385, allocations: 2.91 MB / 450.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.3388, allocations: 0.7507 MB / 451.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000126/0.3389, allocations: 25.88 kB / 451.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.3391, allocations: 82.03 kB / 451.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3391, allocations: 0 / 451.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.3636, allocations: 5.308 MB / 457.1 MB, free: 9.273 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.685/8.048, allocations: 9.234 kB / 457.1 MB, free: 9.266 MB / 334.1 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/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)