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.007208/0.007208, allocations: 111.3 kB / 15.74 MB, free: 6.496 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.001522/0.001522, allocations: 189.2 kB / 16.67 MB, free: 6.375 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.473/1.473, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0405/0.0405, allocations: 8.117 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.00254/0.00254, allocations: 72.31 kB / 386.2 MB, free: 9.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2752, allocations: 48.3 MB / 434.5 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003405/0.2787, allocations: 2.415 MB / 436.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.28, allocations: 0.6781 MB / 437.6 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002947/0.2803, allocations: 15.03 kB / 437.6 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.2806, allocations: 30.86 kB / 437.6 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002691/0.2809, allocations: 71.47 kB / 437.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003459/0.2812, allocations: 74.66 kB / 437.7 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005152/0.2817, allocations: 308.8 kB / 438 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002566/0.282, allocations: 94.86 kB / 438.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002719/0.2823, allocations: 121.1 kB / 438.3 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.2825, allocations: 122.5 kB / 438.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.479e-05/0.2826, allocations: 23.78 kB / 438.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.253e-05/0.2827, allocations: 24.28 kB / 438.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.299e-05/0.2828, allocations: 57.36 kB / 438.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001691/0.2829, allocations: 122.2 kB / 438.6 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000461/0.2834, allocations: 279.2 kB / 438.9 MB, free: 4.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2834, allocations: 4 kB / 438.9 MB, free: 4.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.2834, allocations: 0 / 438.9 MB, free: 4.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.2835, allocations: 1 kB / 438.9 MB, free: 4.609 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.001235/0.2847, allocations: 0.578 MB / 439.5 MB, free: 4.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.2847, allocations: 10.09 kB / 439.5 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.365e-05/0.2848, allocations: 59.25 kB / 439.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.962e-05/0.2849, allocations: 38.36 kB / 439.6 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003965/0.2853, allocations: 245.7 kB / 439.8 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.2854, allocations: 13.84 kB / 439.8 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.173e-05/0.2854, allocations: 29.45 kB / 439.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005941/0.286, allocations: 224 kB / 440.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.349e-05/0.2861, allocations: 1.672 kB / 440.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.2861, allocations: 13.45 kB / 440.1 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.2861, allocations: 9.594 kB / 440.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005937/0.2867, allocations: 191.4 kB / 440.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.2879, allocations: 0.6599 MB / 440.9 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007038/0.2886, allocations: 261.9 kB / 441.2 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003389/0.2889, allocations: 119.7 kB / 441.3 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.289, allocations: 6.312 kB / 441.3 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004679/0.2894, allocations: 172.5 kB / 441.5 MB, free: 2.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.904e-06/0.2895, allocations: 0 / 441.5 MB, free: 2.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002592/0.2921, allocations: 1.19 MB / 442.7 MB, free: 2.227 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.2921, allocations: 60.17 kB / 442.7 MB, free: 2.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.2923, allocations: 180.2 kB / 442.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.2923, allocations: 33.06 kB / 442.9 MB, free: 2 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.37e-05/0.2924, allocations: 142.2 kB / 443.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.618e-05/0.2924, allocations: 103.9 kB / 443.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.07e-05/0.2925, allocations: 57.02 kB / 443.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.899e-05/0.2926, allocations: 338.2 kB / 443.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002961/0.2929, allocations: 97.22 kB / 443.7 MB, free: 1.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.2932, allocations: 135.9 kB / 443.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.2945, allocations: 0.5584 MB / 444.3 MB, free: 1.062 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2945, allocations: 1.188 kB / 444.4 MB, free: 1.062 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007119/0.2952, allocations: 357.9 kB / 444.7 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/0.2953, allocations: 35.56 kB / 444.7 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.2953, allocations: 5.219 kB / 444.7 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.2953, allocations: 3.484 kB / 444.7 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003035/0.2956, allocations: 79.66 kB / 444.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.2956, allocations: 2.031 kB / 444.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.2958, allocations: 27.86 kB / 444.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.2959, allocations: 12.25 kB / 444.9 MB, free: 0.8398 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: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$PRE.trapezoid.count,$PRE.trapezoid.T_start,$PRE.speedSensor.w,trapezoid.count,trapezoid.T_start,speedSensor.w,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.2961, allocations: 169.2 kB / 445 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.198e-05/0.2961, allocations: 23.59 kB / 445.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.105e-05/0.2962, allocations: 27.42 kB / 445.1 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.2962, allocations: 4.125 kB / 445.1 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.2962, allocations: 4 kB / 445.1 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.2962, allocations: 2.016 kB / 445.1 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/0.2973, allocations: 0.784 MB / 445.9 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2973, allocations: 4.062 kB / 445.9 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003134/0.2977, allocations: 72.33 kB / 445.9 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.2977, allocations: 2.781 kB / 445.9 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.2977, allocations: 7.891 kB / 446 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2977, allocations: 5 kB / 446 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.2977, allocations: 2.844 kB / 446 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.2988, allocations: 0.5267 MB / 446.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.794e-05/0.2989, allocations: 93.91 kB / 446.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.808e-05/0.2989, allocations: 6.344 kB / 446.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.2992, allocations: 28.25 kB / 446.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.79e-05/0.2993, allocations: 32.66 kB / 446.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.2993, allocations: 8.25 kB / 446.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001104/0.2994, allocations: 134.6 kB / 446.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2994, allocations: 1.25 kB / 446.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003181/0.2997, allocations: 62.16 kB / 446.8 MB, free: 15.61 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: 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 (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.001466/0.3012, allocations: 1.085 MB / 447.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007728/0.302, allocations: 317.9 kB / 448.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.302, allocations: 0 / 448.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003702/0.3024, allocations: 145.1 kB / 448.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004323/0.3028, allocations: 63.64 kB / 448.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005799/0.3086, allocations: 3.009 MB / 451.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.309, allocations: 0.757 MB / 452.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.3091, allocations: 28.45 kB / 452.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.3093, allocations: 82.22 kB / 452.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3093, allocations: 3.938 kB / 452.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02677/0.3361, allocations: 5.519 MB / 457.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.603/7.939, allocations: 9.516 kB / 457.9 MB, free: 8.875 MB / 334.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/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)