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.0008534/0.0008533, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006899/0.006899, allocations: 172.3 kB / 16.27 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.629/1.629, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04074/0.04074, allocations: 8.114 MB / 278.8 MB, free: 13.11 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.0005278/0.0005278, allocations: 12.42 kB / 339 MB, free: 26.57 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1045, allocations: 49.28 MB / 388.3 MB, free: 9.23 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.00266/0.1072, allocations: 2.084 MB / 390.3 MB, free: 7.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.1082, allocations: 0.6243 MB / 391 MB, free: 6.496 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.1083, allocations: 7.938 kB / 391 MB, free: 6.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.1085, allocations: 19.78 kB / 391 MB, free: 6.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.1086, allocations: 63.53 kB / 391.1 MB, free: 6.406 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002644/0.1089, allocations: 59.94 kB / 391.1 MB, free: 6.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003058/0.1092, allocations: 278.8 kB / 391.4 MB, free: 6.074 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.1094, allocations: 90.11 kB / 391.5 MB, free: 5.984 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.1096, allocations: 95.62 kB / 391.6 MB, free: 5.891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.1097, allocations: 107.5 kB / 391.7 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.552e-05/0.1098, allocations: 12 kB / 391.7 MB, free: 5.773 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.476e-05/0.1098, allocations: 12 kB / 391.7 MB, free: 5.762 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.381e-05/0.1099, allocations: 47.77 kB / 391.7 MB, free: 5.715 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.11, allocations: 133.1 kB / 391.9 MB, free: 5.578 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.1103, allocations: 251 kB / 392.1 MB, free: 5.332 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1103, allocations: 0 / 392.1 MB, free: 5.332 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1103, allocations: 7.938 kB / 392.1 MB, free: 5.324 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.1103, allocations: 0 / 392.1 MB, free: 5.324 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.0009833/0.1113, allocations: 0.5436 MB / 392.7 MB, free: 4.723 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.1114, allocations: 8.031 kB / 392.7 MB, free: 4.715 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.289e-05/0.1114, allocations: 62.72 kB / 392.7 MB, free: 4.645 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.374e-05/0.1115, allocations: 24.66 kB / 392.8 MB, free: 4.621 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.1118, allocations: 244.6 kB / 393 MB, free: 4.344 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.1119, allocations: 20.75 kB / 393 MB, free: 4.324 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.038e-05/0.1119, allocations: 28.28 kB / 393.1 MB, free: 4.297 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005377/0.1125, allocations: 239.3 kB / 393.3 MB, free: 4.055 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.855e-05/0.1125, allocations: 7.938 kB / 393.3 MB, free: 4.047 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.18e-05/0.1125, allocations: 4 kB / 393.3 MB, free: 4.043 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.1125, allocations: 8 kB / 393.3 MB, free: 4.035 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005828/0.1131, allocations: 221.6 kB / 393.5 MB, free: 3.82 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.1143, allocations: 0.7215 MB / 394.2 MB, free: 3.035 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007344/0.115, allocations: 278.2 kB / 394.5 MB, free: 2.758 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003217/0.1154, allocations: 128.8 kB / 394.6 MB, free: 2.629 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.1154, allocations: 4 kB / 394.6 MB, free: 2.625 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004361/0.1159, allocations: 176.3 kB / 394.8 MB, free: 2.441 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.453e-06/0.1159, allocations: 0 / 394.8 MB, free: 2.441 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002569/0.1184, allocations: 1.197 MB / 396 MB, free: 1.156 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.1185, allocations: 59.39 kB / 396.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.1187, allocations: 179.4 kB / 396.2 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.1187, allocations: 29.7 kB / 396.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.1188, allocations: 140.7 kB / 396.4 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.358e-05/0.1189, allocations: 110.5 kB / 396.5 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.339e-05/0.119, allocations: 29.7 kB / 396.5 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1191, allocations: 326.8 kB / 396.9 MB, free: 256 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/0.1194, allocations: 103.9 kB / 397 MB, free: 152 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.1197, allocations: 133.5 kB / 397.1 MB, free: 12 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.1212, allocations: 0.578 MB / 397.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.1212, allocations: 0 / 397.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007258/0.1219, allocations: 359.8 kB / 398 MB, free: 15.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/0.122, allocations: 39.98 kB / 398.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.122, allocations: 4 kB / 398.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.122, allocations: 3.938 kB / 398.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002936/0.1223, allocations: 83.92 kB / 398.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.1223, allocations: 0 / 398.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.1225, allocations: 31.97 kB / 398.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.1226, allocations: 8 kB / 398.2 MB, free: 14.88 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: 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.0002283/0.1228, allocations: 159.8 kB / 398.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.1228, allocations: 19.75 kB / 398.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.036e-05/0.1229, allocations: 26.66 kB / 398.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1229, allocations: 4 kB / 398.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.1229, allocations: 11.92 kB / 398.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.123, allocations: 0 / 398.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001207/0.1242, allocations: 0.7381 MB / 399.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.1242, allocations: 12.05 kB / 399.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003164/0.1245, allocations: 75.89 kB / 399.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1245, allocations: 0 / 399.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.1246, allocations: 8 kB / 399.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1246, allocations: 0 / 399.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1246, allocations: 0 / 399.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.1256, allocations: 0.532 MB / 399.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.77e-05/0.1257, allocations: 104.9 kB / 399.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.1257, allocations: 12 kB / 399.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.126, allocations: 27.97 kB / 399.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.955e-05/0.126, allocations: 27.91 kB / 399.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.1261, allocations: 4 kB / 400 MB, free: 13.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.1262, allocations: 132.6 kB / 400.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1262, allocations: 0 / 400.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002824/0.1265, allocations: 68 kB / 400.1 MB, free: 12.81 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: 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.001404/0.1279, allocations: 1.069 MB / 401.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007488/0.1286, allocations: 332.8 kB / 401.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1287, allocations: 0 / 401.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003684/0.129, allocations: 148.5 kB / 401.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004548/0.1295, allocations: 51.84 kB / 401.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005421/0.1349, allocations: 3.138 MB / 404.9 MB, free: 7.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.1353, allocations: 0.748 MB / 405.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.985e-05/0.1354, allocations: 26.28 kB / 405.6 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.1355, allocations: 71.42 kB / 405.7 MB, free: 7.062 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1355, allocations: 0 / 405.7 MB, free: 7.062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0156/0.1511, allocations: 4.694 MB / 410.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002477/0.1514, allocations: 237.2 kB / 410.6 MB, free: 2.223 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.013/2.165, allocations: 0 / 410.6 MB, free: 2.223 MB / 302.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)