Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_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.001313/0.001318, allocations: 97.17 kB / 16.3 MB, free: 5.992 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.0015/0.0015, allocations: 182.5 kB / 17.2 MB, free: 5.906 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.452/1.452, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002592/0.0002595, allocations: 6.25 kB / 300.8 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1048, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002249/0.1071, allocations: 1.244 MB / 352.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000943/0.1081, allocations: 447.2 kB / 352.9 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.774e-05/0.1082, allocations: 0 / 352.9 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.457e-05/0.1083, allocations: 3.938 kB / 352.9 MB, free: 9.965 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.1084, allocations: 11.98 kB / 352.9 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.1088, allocations: 47 kB / 353 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.1089, allocations: 23.97 kB / 353 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.109, allocations: 15.92 kB / 353 MB, free: 9.871 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.578e-05/0.1091, allocations: 31.8 kB / 353 MB, free: 9.84 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.621e-05/0.1091, allocations: 11.92 kB / 353 MB, free: 9.828 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.1092, allocations: 4 kB / 353.1 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.744e-05/0.1092, allocations: 0 / 353.1 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.168e-05/0.1092, allocations: 15.92 kB / 353.1 MB, free: 9.809 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.143e-05/0.1093, allocations: 33.7 kB / 353.1 MB, free: 9.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.993e-05/0.1094, allocations: 27.94 kB / 353.1 MB, free: 9.742 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.1094, allocations: 4 kB / 353.1 MB, free: 9.738 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1094, allocations: 0 / 353.1 MB, free: 9.738 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.1094, allocations: 0 / 353.1 MB, free: 9.738 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.0005306/0.11, allocations: 371 kB / 353.5 MB, free: 9.328 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.11, allocations: 8.031 kB / 353.5 MB, free: 9.32 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.637e-05/0.1101, allocations: 38.5 kB / 353.5 MB, free: 9.273 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.625e-05/0.1101, allocations: 7.906 kB / 353.5 MB, free: 9.266 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.1104, allocations: 194.8 kB / 353.7 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.1104, allocations: 0 / 353.7 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.1104, allocations: 4 kB / 353.7 MB, free: 9.031 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003188/0.1107, allocations: 113 kB / 353.9 MB, free: 8.902 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1107, allocations: 3.953 kB / 353.9 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.1108, allocations: 0 / 353.9 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.1108, allocations: 0 / 353.9 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001076/0.1109, allocations: 27.92 kB / 353.9 MB, free: 8.871 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000359/0.1113, allocations: 261.8 kB / 354.1 MB, free: 8.562 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.1114, allocations: 45.14 kB / 354.2 MB, free: 8.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.1114, allocations: 3.953 kB / 354.2 MB, free: 8.496 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.1115, allocations: 42.62 kB / 354.2 MB, free: 8.445 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.1115, allocations: 0 / 354.2 MB, free: 8.445 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003025/0.1118, allocations: 69.52 kB / 354.3 MB, free: 8.371 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/0.1119, allocations: 85.36 kB / 354.4 MB, free: 8.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.112, allocations: 140.7 kB / 354.5 MB, free: 8.121 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.1121, allocations: 25.7 kB / 354.5 MB, free: 8.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.1122, allocations: 96.12 kB / 354.6 MB, free: 7.992 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.1122, allocations: 0 / 354.6 MB, free: 7.992 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-06/0.1122, allocations: 0 / 354.6 MB, free: 7.992 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1123, allocations: 310.8 kB / 354.9 MB, free: 7.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.521e-05/0.1124, allocations: 15.98 kB / 355 MB, free: 7.664 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.679e-05/0.1125, allocations: 25.66 kB / 355 MB, free: 7.633 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.779e-05/0.1125, allocations: 11.98 kB / 355 MB, free: 7.621 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1125, allocations: 0 / 355 MB, free: 7.621 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001666/0.1127, allocations: 65.61 kB / 355.1 MB, free: 7.551 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.1127, allocations: 4 kB / 355.1 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1128, allocations: 0 / 355.1 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.1128, allocations: 7.938 kB / 355.1 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.638e-05/0.1129, allocations: 7.984 kB / 355.1 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1129, allocations: 0 / 355.1 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.888e-05/0.113, allocations: 4 kB / 355.1 MB, free: 7.527 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.113, allocations: 4 kB / 355.1 MB, free: 7.523 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001111/0.1131, allocations: 117.9 kB / 355.2 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-05/0.1132, allocations: 45.56 kB / 355.2 MB, free: 7.348 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.252e-05/0.1133, allocations: 7.875 kB / 355.2 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1133, allocations: 0 / 355.2 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1133, allocations: 0 / 355.2 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1133, allocations: 4 kB / 355.3 MB, free: 7.332 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000224/0.1135, allocations: 173.6 kB / 355.4 MB, free: 7.113 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1135, allocations: 0 / 355.4 MB, free: 7.113 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.095e-05/0.1136, allocations: 7.984 kB / 355.4 MB, free: 7.105 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.1136, allocations: 11.83 kB / 355.4 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.1136, allocations: 8.031 kB / 355.5 MB, free: 7.086 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1136, allocations: 0 / 355.5 MB, free: 7.086 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1136, allocations: 0 / 355.5 MB, free: 7.086 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/0.1139, allocations: 178 kB / 355.6 MB, free: 6.887 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.679e-05/0.114, allocations: 96.95 kB / 355.7 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.1141, allocations: 0 / 355.7 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.887e-05/0.1142, allocations: 4 kB / 355.7 MB, free: 6.77 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.282e-05/0.1142, allocations: 3.984 kB / 355.7 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.1142, allocations: 0 / 355.7 MB, free: 6.766 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.659e-05/0.1143, allocations: 109.3 kB / 355.8 MB, free: 6.66 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1143, allocations: 0 / 355.8 MB, free: 6.66 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.1147, allocations: 8 kB / 355.8 MB, free: 6.652 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0006741/0.1154, allocations: 0.7758 MB / 356.6 MB, free: 5.844 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001721/0.1155, allocations: 31.95 kB / 356.6 MB, free: 5.812 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1156, allocations: 4 kB / 356.7 MB, free: 5.809 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.081e-05/0.1156, allocations: 8 kB / 356.7 MB, free: 5.801 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.116, allocations: 12.02 kB / 356.7 MB, free: 5.789 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.1173, allocations: 0.6396 MB / 357.3 MB, free: 5.09 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.1177, allocations: 0.6926 MB / 358 MB, free: 4.371 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.674e-05/0.1177, allocations: 4 kB / 358 MB, free: 4.367 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.543e-05/0.1178, allocations: 11.5 kB / 358 MB, free: 4.355 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1178, allocations: 0 / 358 MB, free: 4.355 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01437/0.1322, allocations: 1.286 MB / 359.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002542/0.1325, allocations: 193 kB / 359.5 MB, free: 2.977 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/1.796, allocations: 4 kB / 359.5 MB, free: 2.973 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat does not exist to compare? outputFormat=mat