Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",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.0008522/0.0008522, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.000874/0.0008741, allocations: 180.4 kB / 17.2 MB, free: 5.914 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.406/1.406, allocations: 223.2 MB / 241.1 MB, free: 5.32 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002904/0.0002905, allocations: 7.188 kB / 300.8 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1255, allocations: 50.42 MB / 351.2 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.001966/0.1275, allocations: 1.267 MB / 352.5 MB, free: 10.26 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007578/0.1283, allocations: 451.2 kB / 352.9 MB, free: 9.816 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.711e-05/0.1284, allocations: 4 kB / 352.9 MB, free: 9.812 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.548e-05/0.1285, allocations: 3.984 kB / 353 MB, free: 9.809 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.1286, allocations: 15.92 kB / 353 MB, free: 9.793 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.1289, allocations: 43.88 kB / 353 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001075/0.129, allocations: 35.84 kB / 353 MB, free: 9.715 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.356e-05/0.1291, allocations: 8.125 kB / 353.1 MB, free: 9.707 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.75e-05/0.1292, allocations: 31.84 kB / 353.1 MB, free: 9.676 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.968e-05/0.1293, allocations: 15.88 kB / 353.1 MB, free: 9.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.1293, allocations: 0 / 353.1 MB, free: 9.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.115e-05/0.1293, allocations: 0 / 353.1 MB, free: 9.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.667e-05/0.1293, allocations: 15.92 kB / 353.1 MB, free: 9.645 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.712e-05/0.1294, allocations: 33.7 kB / 353.1 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.257e-05/0.1295, allocations: 39.92 kB / 353.2 MB, free: 9.566 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.1295, allocations: 0 / 353.2 MB, free: 9.566 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1295, allocations: 0 / 353.2 MB, free: 9.566 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.1295, allocations: 0 / 353.2 MB, free: 9.566 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004411/0.1299, allocations: 363.1 kB / 353.5 MB, free: 9.164 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.13, allocations: 11.97 kB / 353.6 MB, free: 9.152 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.63e-05/0.13, allocations: 42.55 kB / 353.6 MB, free: 9.102 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.711e-05/0.13, allocations: 11.86 kB / 353.6 MB, free: 9.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000199/0.1302, allocations: 190.8 kB / 353.8 MB, free: 8.863 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.1303, allocations: 8 kB / 353.8 MB, free: 8.855 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.1303, allocations: 0 / 353.8 MB, free: 8.855 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002652/0.1306, allocations: 113.9 kB / 353.9 MB, free: 8.723 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.1306, allocations: 0 / 353.9 MB, free: 8.723 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.1306, allocations: 11.94 kB / 353.9 MB, free: 8.711 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1306, allocations: 4 kB / 353.9 MB, free: 8.707 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.181e-05/0.1307, allocations: 31.92 kB / 354 MB, free: 8.676 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002837/0.131, allocations: 262.7 kB / 354.2 MB, free: 8.363 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.1311, allocations: 71.84 kB / 354.3 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.1311, allocations: 4 kB / 354.3 MB, free: 8.262 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.1312, allocations: 46.45 kB / 354.3 MB, free: 8.207 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.1312, allocations: 0 / 354.3 MB, free: 8.207 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002479/0.1314, allocations: 89.7 kB / 354.4 MB, free: 8.113 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/0.1315, allocations: 106.8 kB / 354.5 MB, free: 7.984 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.1316, allocations: 144.6 kB / 354.7 MB, free: 7.836 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.1316, allocations: 25.7 kB / 354.7 MB, free: 7.805 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.212e-05/0.1317, allocations: 88.14 kB / 354.8 MB, free: 7.715 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.1317, allocations: 11.83 kB / 354.8 MB, free: 7.703 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-06/0.1317, allocations: 4.188 kB / 354.8 MB, free: 7.699 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.1318, allocations: 318.8 kB / 355.1 MB, free: 7.379 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.124e-05/0.1319, allocations: 11.98 kB / 355.1 MB, free: 7.367 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.691e-05/0.1319, allocations: 31.44 kB / 355.1 MB, free: 7.324 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.736e-05/0.132, allocations: 19.98 kB / 355.2 MB, free: 7.305 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.132, allocations: 0 / 355.2 MB, free: 7.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001323/0.1321, allocations: 73.56 kB / 355.2 MB, free: 7.227 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1322, allocations: 8 kB / 355.2 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1322, allocations: 0 / 355.2 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.1322, allocations: 8.062 kB / 355.3 MB, free: 7.211 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.148e-05/0.1323, allocations: 11.94 kB / 355.3 MB, free: 7.199 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.1323, allocations: 4 kB / 355.3 MB, free: 7.195 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.409e-05/0.1323, allocations: 11.89 kB / 355.3 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-06/0.1323, allocations: 4 kB / 355.3 MB, free: 7.18 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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 8.504e-05/0.1324, allocations: 113.8 kB / 355.4 MB, free: 7.059 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.678e-05/0.1325, allocations: 65.42 kB / 355.5 MB, free: 6.988 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.546e-05/0.1326, allocations: 15.94 kB / 355.5 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1326, allocations: 0 / 355.5 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1326, allocations: 0 / 355.5 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.1326, allocations: 0 / 355.5 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000174/0.1328, allocations: 177.6 kB / 355.7 MB, free: 6.746 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1328, allocations: 0 / 355.7 MB, free: 6.746 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.796e-05/0.1328, allocations: 12 kB / 355.7 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1328, allocations: 4 kB / 355.7 MB, free: 6.73 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.1329, allocations: 3.953 kB / 355.7 MB, free: 6.727 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.1329, allocations: 3.984 kB / 355.7 MB, free: 6.723 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1329, allocations: 4 kB / 355.7 MB, free: 6.719 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001983/0.1331, allocations: 208.5 kB / 355.9 MB, free: 6.48 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.011e-05/0.1332, allocations: 97 kB / 356 MB, free: 6.367 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.1332, allocations: 0 / 356 MB, free: 6.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.986e-05/0.1333, allocations: 4 kB / 356 MB, free: 6.363 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.907e-05/0.1333, allocations: 0 / 356 MB, free: 6.363 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.1333, allocations: 4 kB / 356 MB, free: 6.359 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.765e-05/0.1334, allocations: 107.2 kB / 356.1 MB, free: 6.254 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1334, allocations: 0 / 356.1 MB, free: 6.254 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002205/0.1336, allocations: 8 kB / 356.1 MB, free: 6.246 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (4): * Single equations (assignments): 4 * 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.0005192/0.1342, allocations: 0.8844 MB / 357 MB, free: 5.324 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001307/0.1343, allocations: 31.92 kB / 357 MB, free: 5.293 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1343, allocations: 4 kB / 357 MB, free: 5.289 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.452e-05/0.1343, allocations: 4 kB / 357 MB, free: 5.285 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003206/0.1347, allocations: 31.33 kB / 357.1 MB, free: 5.258 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009433/0.1356, allocations: 0.98 MB / 358 MB, free: 4.207 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.1359, allocations: 0.7004 MB / 358.7 MB, free: 3.48 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.269e-05/0.1359, allocations: 4.359 kB / 358.7 MB, free: 3.477 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.533e-05/0.136, allocations: 19.48 kB / 358.8 MB, free: 3.457 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.136, allocations: 0 / 358.8 MB, free: 3.457 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01051/0.1465, allocations: 1.403 MB / 360.2 MB, free: 2.199 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/0.1467, allocations: 197.1 kB / 360.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/1.911, allocations: 0 / 360.4 MB, free: 1.953 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat does not exist to compare? outputFormat=mat