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.007522/0.007522, allocations: 101.8 kB / 15.73 MB, free: 6 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.001514/0.001514, allocations: 193.5 kB / 16.67 MB, free: 5.926 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.596/1.596, allocations: 205.1 MB / 222.5 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04263/0.04263, allocations: 8.113 MB / 278 MB, free: 13.04 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.002587/0.002587, allocations: 75.89 kB / 386.2 MB, free: 9.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2909, allocations: 48.29 MB / 434.5 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.002997/0.2939, allocations: 2.416 MB / 436.9 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009607/0.2949, allocations: 0.681 MB / 437.6 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.295, allocations: 4.625 kB / 437.6 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.2952, allocations: 42.89 kB / 437.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.2953, allocations: 69.64 kB / 437.7 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002291/0.2955, allocations: 71.8 kB / 437.7 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003082/0.2959, allocations: 305.1 kB / 438 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.2961, allocations: 97.72 kB / 438.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.2962, allocations: 121.6 kB / 438.3 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.2964, allocations: 127.5 kB / 438.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.043e-05/0.2964, allocations: 23.38 kB / 438.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.117e-05/0.2965, allocations: 24.75 kB / 438.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.875e-05/0.2965, allocations: 52.44 kB / 438.5 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.2966, allocations: 126.1 kB / 438.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003017/0.2969, allocations: 278.5 kB / 438.9 MB, free: 4.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2969, allocations: 0 / 438.9 MB, free: 4.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2969, allocations: 5.531 kB / 438.9 MB, free: 4.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.297, allocations: 5.438 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.0009312/0.2979, allocations: 0.5721 MB / 439.5 MB, free: 4.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.2979, allocations: 9.875 kB / 439.5 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.047e-05/0.298, allocations: 59.25 kB / 439.5 MB, free: 4.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.745e-05/0.2981, allocations: 26.97 kB / 439.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002787/0.2983, allocations: 246.2 kB / 439.8 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.2984, allocations: 18.36 kB / 439.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.61e-05/0.2984, allocations: 32.25 kB / 439.8 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000497/0.2989, allocations: 224.5 kB / 440.1 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.299, allocations: 2.078 kB / 440.1 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.299, allocations: 10.34 kB / 440.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.299, allocations: 5.781 kB / 440.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005407/0.2995, allocations: 198.8 kB / 440.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009176/0.3005, allocations: 0.6639 MB / 440.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006884/0.3012, allocations: 258.9 kB / 441.2 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.3015, allocations: 118.6 kB / 441.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.3015, allocations: 2.719 kB / 441.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004273/0.3019, allocations: 174.6 kB / 441.5 MB, free: 2.961 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 2.164e-06/0.302, allocations: 0 / 441.5 MB, free: 2.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002521/0.3045, allocations: 1.19 MB / 442.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.3045, allocations: 60.33 kB / 442.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.3047, allocations: 180.5 kB / 442.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.3047, allocations: 33.3 kB / 442.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.3048, allocations: 142.1 kB / 443.1 MB, free: 1.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.775e-05/0.3048, allocations: 103.6 kB / 443.2 MB, free: 1.801 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.427e-05/0.3049, allocations: 56.97 kB / 443.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.064e-05/0.305, allocations: 340 kB / 443.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002883/0.3053, allocations: 103.2 kB / 443.7 MB, free: 1.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.3056, allocations: 136.5 kB / 443.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001318/0.3069, allocations: 0.5539 MB / 444.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3069, allocations: 1.5 kB / 444.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007313/0.3077, allocations: 357.9 kB / 444.7 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.327e-05/0.3077, allocations: 37.22 kB / 444.7 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3077, allocations: 0 / 444.7 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.3078, allocations: 7.469 kB / 444.7 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003263/0.3081, allocations: 74.33 kB / 444.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.3081, allocations: 7.234 kB / 444.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.3084, allocations: 25.05 kB / 444.9 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.3084, allocations: 11.78 kB / 444.9 MB, free: 0.8477 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.0002088/0.3086, allocations: 165.5 kB / 445 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.806e-05/0.3087, allocations: 22.33 kB / 445 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.551e-05/0.3087, allocations: 28.81 kB / 445.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.3087, allocations: 3.641 kB / 445.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.3088, allocations: 1.531 kB / 445.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3088, allocations: 5.266 kB / 445.1 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.31, allocations: 0.7872 MB / 445.9 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.31, allocations: 0 / 445.9 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003214/0.3103, allocations: 73.78 kB / 445.9 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3103, allocations: 1.156 kB / 445.9 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.3103, allocations: 11.23 kB / 446 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.3104, allocations: 3.844 kB / 446 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3104, allocations: 0 / 446 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.3114, allocations: 0.5287 MB / 446.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.533e-05/0.3115, allocations: 97.23 kB / 446.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.546e-05/0.3115, allocations: 7 kB / 446.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002398/0.3118, allocations: 27.39 kB / 446.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.793e-05/0.3119, allocations: 33.48 kB / 446.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.287e-05/0.3119, allocations: 12.2 kB / 446.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001235/0.312, allocations: 135.2 kB / 446.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.312, allocations: 0 / 446.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003447/0.3124, allocations: 62.56 kB / 446.9 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.001345/0.3137, allocations: 1.077 MB / 447.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007008/0.3144, allocations: 326.4 kB / 448.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3145, allocations: 0 / 448.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003415/0.3148, allocations: 144.9 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.0004556/0.3153, allocations: 55.66 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.005339/0.3206, allocations: 3.01 MB / 451.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.3209, allocations: 0.756 MB / 452.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001291/0.3211, allocations: 28.25 kB / 452.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.3212, allocations: 87.58 kB / 452.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3212, allocations: 0 / 452.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.3451, allocations: 5.522 MB / 457.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.732/8.077, allocations: 2.25 kB / 457.9 MB, free: 8.883 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)