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.005168/0.005168, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001277/0.001277, allocations: 194.9 kB / 16.67 MB, free: 5.977 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.444/1.444, allocations: 205.1 MB / 222.6 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.0503/0.0503, allocations: 8.115 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.002147/0.002147, allocations: 75.89 kB / 386.2 MB, free: 9.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2896, allocations: 48.3 MB / 434.5 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003703/0.2934, allocations: 2.409 MB / 436.9 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.2944, allocations: 0.6794 MB / 437.6 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.2946, allocations: 8.062 kB / 437.6 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.2947, allocations: 35.16 kB / 437.6 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.2949, allocations: 78.28 kB / 437.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002396/0.2951, allocations: 70.03 kB / 437.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003266/0.2955, allocations: 298.7 kB / 438 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.2957, allocations: 99.84 kB / 438.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.2958, allocations: 111.7 kB / 438.2 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.296, allocations: 135.5 kB / 438.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.595e-05/0.296, allocations: 23.38 kB / 438.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.847e-05/0.2961, allocations: 22.78 kB / 438.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.208e-05/0.2962, allocations: 49.22 kB / 438.5 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.2963, allocations: 130.3 kB / 438.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003739/0.2967, allocations: 278.3 kB / 438.9 MB, free: 4.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2967, allocations: 1.219 kB / 438.9 MB, free: 4.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2967, allocations: 4 kB / 438.9 MB, free: 4.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.2967, allocations: 0 / 438.9 MB, free: 4.617 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.0009821/0.2977, allocations: 0.586 MB / 439.5 MB, free: 4.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.2977, allocations: 10.44 kB / 439.5 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.758e-05/0.2978, allocations: 58.89 kB / 439.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.512e-05/0.2979, allocations: 29.86 kB / 439.6 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.2982, allocations: 254.9 kB / 439.8 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.2982, allocations: 17.22 kB / 439.8 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.152e-05/0.2983, allocations: 25.72 kB / 439.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005109/0.2988, allocations: 229.8 kB / 440.1 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.2988, allocations: 5.016 kB / 440.1 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.2988, allocations: 6.156 kB / 440.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.2988, allocations: 6.031 kB / 440.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005511/0.2994, allocations: 202.4 kB / 440.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009652/0.3004, allocations: 0.6623 MB / 441 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006993/0.3011, allocations: 255.8 kB / 441.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003312/0.3014, allocations: 117.6 kB / 441.3 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.3015, allocations: 2.75 kB / 441.3 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004886/0.302, allocations: 176.2 kB / 441.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 2.335e-06/0.302, allocations: 0 / 441.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002836/0.3048, allocations: 1.195 MB / 442.7 MB, free: 2.219 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/0.3049, allocations: 60.75 kB / 442.7 MB, free: 2.152 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/0.3051, allocations: 184.2 kB / 442.9 MB, free: 2.023 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.204e-05/0.3051, allocations: 32.45 kB / 443 MB, free: 1.988 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.442e-05/0.3052, allocations: 142.4 kB / 443.1 MB, free: 1.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.525e-05/0.3053, allocations: 112.5 kB / 443.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.352e-05/0.3053, allocations: 56.92 kB / 443.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.284e-05/0.3054, allocations: 331.7 kB / 443.6 MB, free: 1.418 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003057/0.3057, allocations: 104.3 kB / 443.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003183/0.3061, allocations: 140.1 kB / 443.8 MB, free: 1.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.3074, allocations: 0.5469 MB / 444.4 MB, free: 1.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3075, allocations: 0.7031 kB / 444.4 MB, free: 1.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000746/0.3082, allocations: 358.1 kB / 444.7 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.3083, allocations: 36.22 kB / 444.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.3083, allocations: 1.375 kB / 444.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.3083, allocations: 5.438 kB / 444.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002944/0.3086, allocations: 77.06 kB / 444.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.3086, allocations: 6.016 kB / 444.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/0.3089, allocations: 28.53 kB / 444.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.3089, allocations: 11.48 kB / 444.9 MB, free: 0.8281 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.0001971/0.3091, allocations: 168.9 kB / 445.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.432e-05/0.3091, allocations: 27.41 kB / 445.1 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.996e-05/0.3092, allocations: 28.08 kB / 445.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.329e-06/0.3092, allocations: 4.125 kB / 445.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.3092, allocations: 4 kB / 445.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3092, allocations: 1.922 kB / 445.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.3105, allocations: 0.7881 MB / 445.9 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3105, allocations: 0 / 445.9 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003241/0.3108, allocations: 75.98 kB / 446 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.3108, allocations: 2.812 kB / 446 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.3108, allocations: 7.547 kB / 446 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.3109, allocations: 2.281 kB / 446 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3109, allocations: 1.344 kB / 446 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.312, allocations: 0.5248 MB / 446.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.39e-05/0.3121, allocations: 100.8 kB / 446.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.94e-05/0.3121, allocations: 7.562 kB / 446.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.3124, allocations: 21.86 kB / 446.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.519e-05/0.3125, allocations: 38.27 kB / 446.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.3125, allocations: 11.3 kB / 446.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001317/0.3126, allocations: 135 kB / 446.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3126, allocations: 1.5 kB / 446.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003398/0.313, allocations: 65.97 kB / 446.9 MB, free: 15.58 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.001517/0.3145, allocations: 1.076 MB / 448 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007909/0.3153, allocations: 324.7 kB / 448.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3153, allocations: 0 / 448.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003653/0.3157, allocations: 144.4 kB / 448.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004712/0.3162, allocations: 61.66 kB / 448.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005808/0.322, allocations: 3.013 MB / 451.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.3224, allocations: 0.7523 MB / 452.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.3226, allocations: 22.91 kB / 452.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.3227, allocations: 79.56 kB / 452.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3227, allocations: 3.938 kB / 452.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02978/0.3525, allocations: 5.411 MB / 457.8 MB, free: 8.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.34/8.693, allocations: 9.016 kB / 457.8 MB, free: 8.926 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)