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.001002/0.001002, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001468/0.001468, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.669/1.669, allocations: 205.4 MB / 222.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04096/0.04096, allocations: 8.105 MB / 278.5 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.0005927/0.000593, allocations: 23.12 kB / 338.3 MB, free: 26.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1171, allocations: 49.26 MB / 387.6 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.002569/0.1197, allocations: 1.937 MB / 389.5 MB, free: 7.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009587/0.1207, allocations: 0.6246 MB / 390.2 MB, free: 7.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.1209, allocations: 4 kB / 390.2 MB, free: 7.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.279e-05/0.1209, allocations: 23.78 kB / 390.2 MB, free: 6.992 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001958/0.1211, allocations: 83.75 kB / 390.3 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/0.1214, allocations: 43.95 kB / 390.3 MB, free: 6.867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002682/0.1216, allocations: 195.6 kB / 390.5 MB, free: 6.676 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.1218, allocations: 69.33 kB / 390.6 MB, free: 6.605 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.122, allocations: 95.62 kB / 390.7 MB, free: 6.512 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.1221, allocations: 103.5 kB / 390.8 MB, free: 6.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.593e-05/0.1221, allocations: 12 kB / 390.8 MB, free: 6.398 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.384e-05/0.1222, allocations: 16 kB / 390.8 MB, free: 6.383 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.375e-05/0.1222, allocations: 43.83 kB / 390.8 MB, free: 6.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.296e-05/0.1223, allocations: 65.58 kB / 390.9 MB, free: 6.27 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.1225, allocations: 191.7 kB / 391.1 MB, free: 6.082 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.1225, allocations: 0 / 391.1 MB, free: 6.082 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1225, allocations: 0 / 391.1 MB, free: 6.082 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1225, allocations: 0 / 391.1 MB, free: 6.082 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.001027/0.1236, allocations: 0.5551 MB / 391.6 MB, free: 5.469 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.1236, allocations: 8.031 kB / 391.7 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.053e-05/0.1237, allocations: 54.55 kB / 391.7 MB, free: 5.398 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.811e-05/0.1238, allocations: 27.72 kB / 391.7 MB, free: 5.371 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/0.1241, allocations: 247.2 kB / 392 MB, free: 5.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.1241, allocations: 24.42 kB / 392 MB, free: 5.066 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.736e-05/0.1241, allocations: 27.91 kB / 392 MB, free: 5.039 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005026/0.1247, allocations: 227.2 kB / 392.2 MB, free: 4.809 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.1247, allocations: 4 kB / 392.3 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.1247, allocations: 8 kB / 392.3 MB, free: 4.797 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.1247, allocations: 12 kB / 392.3 MB, free: 4.785 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005751/0.1253, allocations: 217.6 kB / 392.5 MB, free: 4.574 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.1263, allocations: 0.7292 MB / 393.2 MB, free: 3.781 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007182/0.1271, allocations: 266.3 kB / 393.5 MB, free: 3.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.608e-05/0.1271, allocations: 0 / 393.5 MB, free: 3.516 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004376/0.1275, allocations: 184.2 kB / 393.7 MB, free: 3.324 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.583e-06/0.1276, allocations: 0 / 393.7 MB, free: 3.324 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002459/0.13, allocations: 1.197 MB / 394.8 MB, free: 2.039 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.1301, allocations: 59.41 kB / 394.9 MB, free: 1.969 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001706/0.1303, allocations: 175.5 kB / 395.1 MB, free: 1.785 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.1303, allocations: 29.7 kB / 395.1 MB, free: 1.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.682e-05/0.1304, allocations: 144.7 kB / 395.2 MB, free: 1.605 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.187e-05/0.1305, allocations: 102.5 kB / 395.3 MB, free: 1.504 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/0.1305, allocations: 4 kB / 395.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1306, allocations: 330.8 kB / 395.7 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002748/0.1309, allocations: 99.94 kB / 395.8 MB, free: 1.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.1312, allocations: 137.5 kB / 395.9 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.1315, allocations: 138.2 kB / 396 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.1316, allocations: 0 / 396 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007106/0.1323, allocations: 360.5 kB / 396.4 MB, free: 436 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.1323, allocations: 36.16 kB / 396.4 MB, free: 396 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.495e-06/0.1323, allocations: 4 kB / 396.4 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.1324, allocations: 0 / 396.4 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.1327, allocations: 83.91 kB / 396.5 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.1327, allocations: 3.938 kB / 396.5 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002113/0.1329, allocations: 31.98 kB / 396.6 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.585e-05/0.1329, allocations: 7.984 kB / 396.6 MB, free: 264 kB / 286.1 MB Warning: Assuming fixed start value for the following 4 variables: damper.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 springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002216/0.1332, allocations: 171.8 kB / 396.7 MB, free: 84 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.897e-05/0.1332, allocations: 15.81 kB / 396.7 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.289e-05/0.1333, allocations: 34.59 kB / 396.8 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1333, allocations: 8 kB / 396.8 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.1333, allocations: 0 / 396.8 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1333, allocations: 0 / 396.8 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.1345, allocations: 0.7344 MB / 397.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.1345, allocations: 4.031 kB / 397.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/0.1348, allocations: 71.89 kB / 397.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.1348, allocations: 4 kB / 397.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.1348, allocations: 4 kB / 397.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1349, allocations: 4 kB / 397.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1349, allocations: 0 / 397.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.1359, allocations: 0.563 MB / 398.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.698e-05/0.1359, allocations: 100.8 kB / 398.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.136, allocations: 8 kB / 398.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.1362, allocations: 28.02 kB / 398.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.45e-05/0.1363, allocations: 27.95 kB / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.1363, allocations: 7.953 kB / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001003/0.1364, allocations: 132.7 kB / 398.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1364, allocations: 0 / 398.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003099/0.1368, allocations: 60 kB / 398.5 MB, free: 14.17 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001295/0.1381, allocations: 1.234 MB / 399.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006858/0.1388, allocations: 340.8 kB / 400.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1388, allocations: 0 / 400.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003296/0.1391, allocations: 144.3 kB / 400.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/0.1395, allocations: 51.97 kB / 400.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0041/0.1436, allocations: 2.058 MB / 402.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.1439, allocations: 0.7518 MB / 403.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.832e-05/0.144, allocations: 30.27 kB / 403.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.1441, allocations: 67.42 kB / 403.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1441, allocations: 0 / 403.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.1604, allocations: 4.611 MB / 407.8 MB, free: 4.879 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001819/0.1607, allocations: 211.6 kB / 408 MB, free: 4.633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.897/2.058, allocations: 3.938 kB / 408 MB, free: 4.629 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/linux/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) Environment - environmentSimulation: