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.0009221/0.000922, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001024/0.001024, allocations: 172.7 kB / 15.95 MB, free: 208 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.544/1.544, allocations: 205.4 MB / 222.1 MB, free: 5.863 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.101 MB / 278.5 MB, free: 13.46 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.0005344/0.0005344, allocations: 15.12 kB / 338.4 MB, free: 26.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1154, allocations: 49.27 MB / 387.6 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.002607/0.1181, allocations: 2.042 MB / 389.7 MB, free: 7.547 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.1191, allocations: 0.6401 MB / 390.3 MB, free: 6.898 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.1193, allocations: 7.938 kB / 390.3 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.1194, allocations: 27.78 kB / 390.4 MB, free: 6.863 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001209/0.1195, allocations: 59.52 kB / 390.4 MB, free: 6.805 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002211/0.1198, allocations: 55.89 kB / 390.5 MB, free: 6.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002732/0.12, allocations: 270.8 kB / 390.7 MB, free: 6.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.1202, allocations: 65.34 kB / 390.8 MB, free: 6.414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.1203, allocations: 95.62 kB / 390.9 MB, free: 6.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001595/0.1205, allocations: 111.5 kB / 391 MB, free: 6.211 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.823e-05/0.1206, allocations: 16 kB / 391 MB, free: 6.195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.298e-05/0.1206, allocations: 12 kB / 391 MB, free: 6.184 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.21e-05/0.1207, allocations: 39.84 kB / 391.1 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.525e-05/0.1207, allocations: 69.58 kB / 391.1 MB, free: 6.07 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.1209, allocations: 199.7 kB / 391.3 MB, free: 5.875 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1209, allocations: 0 / 391.3 MB, free: 5.875 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.121, allocations: 0 / 391.3 MB, free: 5.875 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.121, allocations: 0 / 391.3 MB, free: 5.875 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.0009392/0.1219, allocations: 0.5474 MB / 391.9 MB, free: 5.273 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.122, allocations: 8.031 kB / 391.9 MB, free: 5.266 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.313e-05/0.122, allocations: 62.53 kB / 392 MB, free: 5.195 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.483e-05/0.1221, allocations: 31.66 kB / 392 MB, free: 5.164 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.1224, allocations: 250.5 kB / 392.2 MB, free: 4.879 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.1224, allocations: 20.44 kB / 392.3 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.225e-05/0.1225, allocations: 24 kB / 392.3 MB, free: 4.836 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004964/0.123, allocations: 231.2 kB / 392.5 MB, free: 4.602 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.123, allocations: 8 kB / 392.5 MB, free: 4.594 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.1231, allocations: 11.94 kB / 392.5 MB, free: 4.582 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.1231, allocations: 8 kB / 392.5 MB, free: 4.574 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005213/0.1236, allocations: 217.6 kB / 392.7 MB, free: 4.363 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.1247, allocations: 0.67 MB / 393.4 MB, free: 3.641 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006896/0.1254, allocations: 277.9 kB / 393.7 MB, free: 3.363 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/0.1257, allocations: 132.8 kB / 393.8 MB, free: 3.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.1257, allocations: 4 kB / 393.8 MB, free: 3.227 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004515/0.1262, allocations: 189.1 kB / 394 MB, free: 3.031 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.503e-06/0.1262, allocations: 0 / 394 MB, free: 3.031 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002469/0.1287, allocations: 1.255 MB / 395.3 MB, free: 1.688 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.1287, allocations: 63.41 kB / 395.3 MB, free: 1.613 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.1289, allocations: 182.9 kB / 395.5 MB, free: 1.426 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.1289, allocations: 29.7 kB / 395.5 MB, free: 1.391 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.127e-05/0.129, allocations: 136.8 kB / 395.7 MB, free: 1.254 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.511e-05/0.1291, allocations: 114.4 kB / 395.8 MB, free: 1.141 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.333e-05/0.1291, allocations: 4 kB / 395.8 MB, free: 1.137 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1293, allocations: 338.8 kB / 396.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.1296, allocations: 108.2 kB / 396.2 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003507/0.1299, allocations: 151.3 kB / 396.4 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.1303, allocations: 154.2 kB / 396.5 MB, free: 384 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1303, allocations: 4 kB / 396.5 MB, free: 380 kB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007548/0.1311, allocations: 382.4 kB / 396.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.152e-05/0.1312, allocations: 36.16 kB / 396.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1312, allocations: 0 / 396.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.1312, allocations: 4 kB / 396.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003066/0.1315, allocations: 87.94 kB / 397 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.1315, allocations: 4 kB / 397 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001899/0.1317, allocations: 23.98 kB / 397 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.1318, allocations: 15.98 kB / 397.1 MB, free: 15.81 MB / 302.1 MB Warning: Assuming fixed start value for the following 4 variables: speedSensor.w:DISCRETE(flow=false fixed = true ) "Sensed speed" 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: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.speedSensor.w,speedSensor.w,$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 (39): * Single equations (assignments): 38 * 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.0002381/0.132, allocations: 169 kB / 397.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.347e-05/0.132, allocations: 23.72 kB / 397.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.154e-05/0.1321, allocations: 38.59 kB / 397.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1321, allocations: 0 / 397.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.1321, allocations: 4 kB / 397.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.1322, allocations: 7.938 kB / 397.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/0.1334, allocations: 0.8034 MB / 398.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.1334, allocations: 12.06 kB / 398.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003067/0.1337, allocations: 71.89 kB / 398.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1337, allocations: 0 / 398.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.1338, allocations: 11.98 kB / 398.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1338, allocations: 4 kB / 398.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1338, allocations: 0 / 398.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009925/0.1348, allocations: 0.5708 MB / 398.8 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.996e-05/0.1349, allocations: 88.92 kB / 398.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.849e-05/0.1349, allocations: 12 kB / 398.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.1351, allocations: 28.02 kB / 398.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.025e-05/0.1352, allocations: 27.95 kB / 398.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.1352, allocations: 12 kB / 398.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001023/0.1353, allocations: 132.4 kB / 399.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1353, allocations: 0 / 399.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003068/0.1357, allocations: 68 kB / 399.1 MB, free: 13.62 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 (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.001364/0.137, allocations: 1.112 MB / 400.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007364/0.1378, allocations: 335.2 kB / 400.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.1378, allocations: 0 / 400.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003463/0.1381, allocations: 164 kB / 400.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004718/0.1386, allocations: 51.75 kB / 400.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004113/0.1427, allocations: 1.969 MB / 402.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.1431, allocations: 0.7483 MB / 403.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.1432, allocations: 30.28 kB / 403.5 MB, free: 9.098 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.1434, allocations: 75.41 kB / 403.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1434, allocations: 0 / 403.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01747/0.1608, allocations: 4.837 MB / 408.4 MB, free: 4.352 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.1611, allocations: 225.8 kB / 408.7 MB, free: 4.113 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.961/2.122, allocations: 4 kB / 408.7 MB, free: 4.109 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/linux/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) Environment - environmentSimulation: