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.0007701/0.0007701, allocations: 89.11 kB / 16.32 MB, free: 6.449 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.0008394/0.0008393, allocations: 178.7 kB / 17.21 MB, free: 6.32 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.37/1.37, allocations: 223.2 MB / 241.2 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003378, allocations: 6.312 kB / 300.9 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1219, allocations: 50.43 MB / 351.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002074/0.124, allocations: 1.633 MB / 353 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007119/0.1247, allocations: 479 kB / 353.4 MB, free: 9.438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.027e-05/0.1248, allocations: 8 kB / 353.4 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.894e-05/0.1249, allocations: 19.84 kB / 353.5 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.666e-05/0.125, allocations: 27.77 kB / 353.5 MB, free: 9.383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001921/0.1252, allocations: 27.97 kB / 353.5 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001583/0.1254, allocations: 131.5 kB / 353.6 MB, free: 9.227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.1255, allocations: 60.41 kB / 353.7 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.431e-05/0.1256, allocations: 55.8 kB / 353.8 MB, free: 9.113 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.743e-05/0.1257, allocations: 55.75 kB / 353.8 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.573e-05/0.1258, allocations: 8 kB / 353.8 MB, free: 9.051 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.112e-05/0.1258, allocations: 8 kB / 353.8 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.845e-05/0.1258, allocations: 19.92 kB / 353.9 MB, free: 9.023 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.426e-05/0.1259, allocations: 49.64 kB / 353.9 MB, free: 8.969 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.126, allocations: 115.7 kB / 354 MB, free: 8.855 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.126, allocations: 0 / 354 MB, free: 8.855 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.596e-06/0.126, allocations: 0 / 354 MB, free: 8.855 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.126, allocations: 7.938 kB / 354 MB, free: 8.848 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.0005178/0.1266, allocations: 422.8 kB / 354.4 MB, free: 8.387 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1266, allocations: 8.031 kB / 354.4 MB, free: 8.379 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.539e-05/0.1267, allocations: 54.5 kB / 354.5 MB, free: 8.316 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.613e-05/0.1267, allocations: 15.81 kB / 354.5 MB, free: 8.301 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.1269, allocations: 194.9 kB / 354.7 MB, free: 8.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.1269, allocations: 12 kB / 354.7 MB, free: 8.059 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.214e-05/0.127, allocations: 20 kB / 354.7 MB, free: 8.039 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.1272, allocations: 137.6 kB / 354.9 MB, free: 7.898 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.1273, allocations: 7.906 kB / 354.9 MB, free: 7.891 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.1273, allocations: 4 kB / 354.9 MB, free: 7.887 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.1273, allocations: 7.953 kB / 354.9 MB, free: 7.879 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.1275, allocations: 99.62 kB / 355 MB, free: 7.781 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007312/0.1283, allocations: 0.5329 MB / 355.5 MB, free: 7.191 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001579/0.1284, allocations: 82.45 kB / 355.6 MB, free: 7.102 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.732e-05/0.1285, allocations: 32.84 kB / 355.6 MB, free: 7.066 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.1285, allocations: 0 / 355.6 MB, free: 7.066 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.1285, allocations: 30.56 kB / 355.7 MB, free: 7.027 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 9.92e-07/0.1286, allocations: 0 / 355.7 MB, free: 7.027 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009562/0.1295, allocations: 0.6072 MB / 356.3 MB, free: 6.328 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.1296, allocations: 55.41 kB / 356.3 MB, free: 6.262 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.1297, allocations: 128.1 kB / 356.4 MB, free: 6.129 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.1297, allocations: 29.7 kB / 356.5 MB, free: 6.094 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.164e-05/0.1298, allocations: 139.8 kB / 356.6 MB, free: 5.953 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.932e-05/0.1298, allocations: 35.45 kB / 356.6 MB, free: 5.918 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.803e-06/0.1298, allocations: 8 kB / 356.7 MB, free: 5.91 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.13, allocations: 318.8 kB / 357 MB, free: 5.59 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.72e-05/0.13, allocations: 40.12 kB / 357 MB, free: 5.551 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.1302, allocations: 82.84 kB / 357.1 MB, free: 5.445 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.17e-05/0.1303, allocations: 51.88 kB / 357.1 MB, free: 5.395 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.1303, allocations: 4 kB / 357.1 MB, free: 5.391 MB / 286.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002481/0.1305, allocations: 157.4 kB / 357.3 MB, free: 5.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.1305, allocations: 6.375 kB / 357.3 MB, free: 5.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1306, allocations: 4 kB / 357.3 MB, free: 5.223 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.1306, allocations: 4 kB / 357.3 MB, free: 5.219 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.1307, allocations: 43.92 kB / 357.4 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.1308, allocations: 0 / 357.4 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.822e-05/0.1308, allocations: 8 kB / 357.4 MB, free: 5.168 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.1309, allocations: 8 kB / 357.4 MB, free: 5.16 MB / 286.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.0001085/0.131, allocations: 133.7 kB / 357.5 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.888e-05/0.131, allocations: 7.906 kB / 357.5 MB, free: 5.012 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.143e-05/0.1311, allocations: 16.38 kB / 357.5 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.1311, allocations: 4 kB / 357.5 MB, free: 4.988 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1311, allocations: 0 / 357.5 MB, free: 4.988 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1311, allocations: 0 / 357.5 MB, free: 4.988 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005167/0.1316, allocations: 452 kB / 358 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.1316, allocations: 0 / 358 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.1317, allocations: 23.98 kB / 358 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.1318, allocations: 4 kB / 358 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.1318, allocations: 3.938 kB / 358 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1318, allocations: 0 / 358 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.1318, allocations: 7.953 kB / 358 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003145/0.1321, allocations: 257.3 kB / 358.3 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.691e-05/0.1322, allocations: 88.98 kB / 358.3 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.1322, allocations: 8.047 kB / 358.4 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.883e-05/0.1323, allocations: 7.984 kB / 358.4 MB, free: 4.051 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.914e-05/0.1323, allocations: 16 kB / 358.4 MB, free: 4.035 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.1323, allocations: 8 kB / 358.4 MB, free: 4.027 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.651e-05/0.1324, allocations: 95.2 kB / 358.5 MB, free: 3.934 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1324, allocations: 4 kB / 358.5 MB, free: 3.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002574/0.1327, allocations: 24 kB / 358.5 MB, free: 3.906 MB / 286.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.0005785/0.1333, allocations: 0.7883 MB / 359.3 MB, free: 3.086 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001998/0.1335, allocations: 100.4 kB / 359.4 MB, free: 2.988 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1335, allocations: 4 kB / 359.4 MB, free: 2.984 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.62e-05/0.1336, allocations: 35.92 kB / 359.4 MB, free: 2.949 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000319/0.1339, allocations: 19.89 kB / 359.4 MB, free: 2.93 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.1353, allocations: 0.9714 MB / 360.4 MB, free: 1.883 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.1356, allocations: 0.7121 MB / 361.1 MB, free: 1.145 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.678e-05/0.1356, allocations: 12.88 kB / 361.1 MB, free: 1.129 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.71e-05/0.1357, allocations: 39.42 kB / 361.2 MB, free: 1.09 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1357, allocations: 0 / 361.2 MB, free: 1.09 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01229/0.148, allocations: 2.068 MB / 363.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.1482, allocations: 186.6 kB / 363.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.718/1.866, allocations: 3.875 kB / 363.4 MB, free: 14.91 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