Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",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.001213/0.001213, allocations: 89.27 kB / 16.3 MB, free: 6.133 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.001367/0.001367, allocations: 184.8 kB / 17.2 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 223.2 MB / 241.1 MB, free: 14.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002654/0.0002654, allocations: 4 kB / 300.8 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1153, allocations: 50.42 MB / 351.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002123/0.1175, allocations: 1.596 MB / 352.8 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007435/0.1183, allocations: 491.1 kB / 353.3 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.304e-05/0.1184, allocations: 4 kB / 353.3 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.142e-05/0.1184, allocations: 11.92 kB / 353.3 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.1185, allocations: 35.86 kB / 353.4 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001641/0.1187, allocations: 35.95 kB / 353.4 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001696/0.1189, allocations: 95.81 kB / 353.5 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.119, allocations: 54.09 kB / 353.5 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.1192, allocations: 59.77 kB / 353.6 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.1193, allocations: 47.78 kB / 353.6 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.118e-05/0.1193, allocations: 8 kB / 353.7 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.519e-05/0.1193, allocations: 8 kB / 353.7 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.954e-05/0.1194, allocations: 27.86 kB / 353.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.323e-05/0.1194, allocations: 53.62 kB / 353.7 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.1196, allocations: 123.9 kB / 353.9 MB, free: 1.066 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1196, allocations: 0 / 353.9 MB, free: 1.066 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.1196, allocations: 3.984 kB / 353.9 MB, free: 1.062 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1196, allocations: 0 / 353.9 MB, free: 1.062 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0005552/0.1202, allocations: 414.8 kB / 354.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.1202, allocations: 12.03 kB / 354.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.046e-05/0.1203, allocations: 50.55 kB / 354.3 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.671e-05/0.1203, allocations: 19.81 kB / 354.3 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.1205, allocations: 194.9 kB / 354.5 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.1206, allocations: 12 kB / 354.6 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.477e-05/0.1206, allocations: 19.91 kB / 354.6 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.1209, allocations: 137.6 kB / 354.7 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.1209, allocations: 0 / 354.7 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.1209, allocations: 7.953 kB / 354.7 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.1209, allocations: 4 kB / 354.7 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.1211, allocations: 99.69 kB / 354.8 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007799/0.1219, allocations: 0.529 MB / 355.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.1221, allocations: 78.48 kB / 355.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.47e-05/0.1221, allocations: 0 / 355.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.1222, allocations: 34.56 kB / 355.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 9.12e-07/0.1222, allocations: 0 / 355.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.000985/0.1232, allocations: 0.6179 MB / 356.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.1232, allocations: 55.41 kB / 356.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.991e-05/0.1233, allocations: 129.1 kB / 356.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.1234, allocations: 29.7 kB / 356.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.356e-05/0.1234, allocations: 128 kB / 356.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.1235, allocations: 43.44 kB / 356.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-06/0.1235, allocations: 4 kB / 356.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1236, allocations: 318.8 kB / 356.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.793e-05/0.1237, allocations: 39.94 kB / 356.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.1238, allocations: 85.59 kB / 356.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.1239, allocations: 59.91 kB / 356.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.124, allocations: 0 / 356.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002515/0.1242, allocations: 154.4 kB / 357.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1242, allocations: 8.188 kB / 357.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1243, allocations: 4 kB / 357.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1243, allocations: 0 / 357.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.1244, allocations: 39.92 kB / 357.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.1245, allocations: 3.984 kB / 357.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.104e-05/0.1245, allocations: 12.09 kB / 357.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.1246, allocations: 7.938 kB / 357.2 MB, free: 13.42 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * 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.0001022/0.1247, allocations: 133.7 kB / 357.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.771e-05/0.1247, allocations: 15.84 kB / 357.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.583e-05/0.1247, allocations: 8.375 kB / 357.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1248, allocations: 4 kB / 357.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.1248, allocations: 3.984 kB / 357.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1248, allocations: 0 / 357.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005472/0.1253, allocations: 451.9 kB / 357.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.1253, allocations: 0 / 357.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.1255, allocations: 27.98 kB / 357.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.1255, allocations: 4 kB / 357.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.1255, allocations: 4 kB / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1255, allocations: 0 / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1255, allocations: 7.953 kB / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003542/0.1259, allocations: 276.5 kB / 358.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.834e-05/0.126, allocations: 92.98 kB / 358.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.126, allocations: 0 / 358.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.264e-05/0.1261, allocations: 8.062 kB / 358.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.119e-05/0.1261, allocations: 11.98 kB / 358.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.1261, allocations: 4 kB / 358.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.029e-05/0.1262, allocations: 95.27 kB / 358.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1262, allocations: 3.938 kB / 358.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00026/0.1265, allocations: 24 kB / 358.3 MB, free: 12.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0007546/0.1272, allocations: 0.9486 MB / 359.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002228/0.1275, allocations: 91.91 kB / 359.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1275, allocations: 0 / 359.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.457e-05/0.1276, allocations: 48.12 kB / 359.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.1279, allocations: 8.5 kB / 359.4 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.1298, allocations: 2.022 MB / 361.4 MB, free: 8.898 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.1301, allocations: 0.716 MB / 362.2 MB, free: 8.156 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.348e-05/0.1302, allocations: 16.86 kB / 362.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.319e-05/0.1303, allocations: 43.42 kB / 362.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of SimCode: time 1.733e-06/0.1303, allocations: 0 / 362.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01313/0.1434, allocations: 2.048 MB / 364.3 MB, free: 6.172 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/0.1437, allocations: 186.7 kB / 364.4 MB, free: 5.926 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.706/1.85, allocations: 0 / 364.4 MB, free: 5.926 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat does not exist to compare? outputFormat=mat