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.001259/0.001259, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001509/0.001509, allocations: 194.2 kB / 16.13 MB, free: 6.66 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.423/1.423, allocations: 205.1 MB / 222 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03991/0.03991, allocations: 8.104 MB / 277.4 MB, free: 13.36 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.001644/0.001644, allocations: 71.91 kB / 336.6 MB, free: 26.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08673/0.08839, allocations: 48.29 MB / 384.9 MB, free: 10.51 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.004103/0.09253, allocations: 2.458 MB / 387.4 MB, free: 8.031 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.09414, allocations: 0.6787 MB / 388 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002715/0.09443, allocations: 4 kB / 388 MB, free: 7.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002052/0.09469, allocations: 23.78 kB / 388.1 MB, free: 7.316 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.09492, allocations: 71.41 kB / 388.1 MB, free: 7.246 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002703/0.0952, allocations: 55.94 kB / 388.2 MB, free: 7.191 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000342/0.09555, allocations: 290.8 kB / 388.5 MB, free: 6.906 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.09574, allocations: 86.17 kB / 388.6 MB, free: 6.816 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.09593, allocations: 107.6 kB / 388.7 MB, free: 6.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.09611, allocations: 123.5 kB / 388.8 MB, free: 6.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.627e-05/0.09616, allocations: 16 kB / 388.8 MB, free: 6.574 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.511e-05/0.09621, allocations: 16 kB / 388.8 MB, free: 6.559 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.071e-05/0.09627, allocations: 47.83 kB / 388.9 MB, free: 6.512 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.0964, allocations: 123.3 kB / 389 MB, free: 6.391 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000255/0.09666, allocations: 267 kB / 389.2 MB, free: 6.129 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.09668, allocations: 0 / 389.2 MB, free: 6.129 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.09668, allocations: 0 / 389.2 MB, free: 6.129 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.09669, allocations: 0 / 389.2 MB, free: 6.129 MB / 286.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.001142/0.09784, allocations: 0.5787 MB / 389.8 MB, free: 5.496 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.0979, allocations: 8.031 kB / 389.8 MB, free: 5.488 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.72e-05/0.09798, allocations: 58.73 kB / 389.9 MB, free: 5.422 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.272e-05/0.09806, allocations: 28.64 kB / 389.9 MB, free: 5.395 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.09838, allocations: 248.8 kB / 390.2 MB, free: 5.113 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.09841, allocations: 12.81 kB / 390.2 MB, free: 5.102 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.909e-05/0.09848, allocations: 28.38 kB / 390.2 MB, free: 5.074 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005502/0.09904, allocations: 231.3 kB / 390.4 MB, free: 4.84 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.09906, allocations: 0 / 390.4 MB, free: 4.84 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.09909, allocations: 12 kB / 390.4 MB, free: 4.828 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.09911, allocations: 4 kB / 390.4 MB, free: 4.824 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005569/0.09967, allocations: 193.6 kB / 390.6 MB, free: 4.637 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.1008, allocations: 0.6739 MB / 391.3 MB, free: 3.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006905/0.1015, allocations: 250.4 kB / 391.5 MB, free: 3.656 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002924/0.1018, allocations: 117.2 kB / 391.7 MB, free: 3.539 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.1018, allocations: 11.94 kB / 391.7 MB, free: 3.527 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004952/0.1023, allocations: 173.1 kB / 391.8 MB, free: 3.348 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.873e-06/0.1023, allocations: 3.938 kB / 391.8 MB, free: 3.344 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002614/0.1049, allocations: 1.195 MB / 393 MB, free: 2.059 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.105, allocations: 55.41 kB / 393.1 MB, free: 1.992 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.1052, allocations: 186.9 kB / 393.3 MB, free: 1.801 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.1052, allocations: 29.7 kB / 393.3 MB, free: 1.766 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.931e-05/0.1053, allocations: 136.8 kB / 393.4 MB, free: 1.629 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.662e-05/0.1054, allocations: 114.4 kB / 393.6 MB, free: 1.516 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.668e-05/0.1055, allocations: 57.7 kB / 393.6 MB, free: 1.453 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1057, allocations: 338.8 kB / 393.9 MB, free: 1.113 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002814/0.1059, allocations: 100.2 kB / 394 MB, free: 1.016 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002855/0.1062, allocations: 131.3 kB / 394.2 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.1076, allocations: 0.5543 MB / 394.7 MB, free: 304 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1076, allocations: 0 / 394.7 MB, free: 304 kB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007353/0.1083, allocations: 354.4 kB / 395.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.404e-05/0.1084, allocations: 45.69 kB / 395.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1084, allocations: 0 / 395.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.1084, allocations: 4 kB / 395.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002984/0.1087, allocations: 71.89 kB / 395.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.1087, allocations: 4 kB / 395.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.109, allocations: 23.97 kB / 395.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.109, allocations: 12 kB / 395.2 MB, free: 15.77 MB / 302.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.0002328/0.1092, allocations: 170.7 kB / 395.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.149e-05/0.1093, allocations: 23.66 kB / 395.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.91e-05/0.1094, allocations: 30.66 kB / 395.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1094, allocations: 4 kB / 395.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.1094, allocations: 4 kB / 395.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.1094, allocations: 3.984 kB / 395.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.1107, allocations: 0.7838 MB / 396.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.1107, allocations: 4 kB / 396.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003141/0.111, allocations: 67.89 kB / 396.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.111, allocations: 0 / 396.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.1111, allocations: 8 kB / 396.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.1111, allocations: 0 / 396.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.1111, allocations: 7.938 kB / 396.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.1121, allocations: 0.5396 MB / 396.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.11e-05/0.1122, allocations: 100.9 kB / 397 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.043e-05/0.1122, allocations: 8 kB / 397 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.1125, allocations: 23.97 kB / 397 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.933e-05/0.1125, allocations: 27.91 kB / 397 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.1126, allocations: 8 kB / 397 MB, free: 13.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001064/0.1127, allocations: 140.3 kB / 397.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1127, allocations: 0 / 397.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.113, allocations: 64 kB / 397.2 MB, free: 13.66 MB / 302.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.001344/0.1144, allocations: 1.093 MB / 398.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007185/0.1151, allocations: 323 kB / 398.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1151, allocations: 0 / 398.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003417/0.1154, allocations: 152.4 kB / 398.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004313/0.1159, allocations: 47.91 kB / 398.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0053/0.1212, allocations: 3.093 MB / 401.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.1215, allocations: 0.7483 MB / 402.7 MB, free: 8.035 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001114/0.1216, allocations: 26.28 kB / 402.7 MB, free: 8.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001258/0.1218, allocations: 75.42 kB / 402.8 MB, free: 7.938 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1218, allocations: 0 / 402.8 MB, free: 7.938 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0313/0.1531, allocations: 4.977 MB / 407.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002703/0.1534, allocations: 239.7 kB / 408 MB, free: 2.828 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/1.91, allocations: 3.953 kB / 408 MB, free: 2.824 MB / 302.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)