Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008929/0.0008928, allocations: 175.9 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008217/0.000822, allocations: 100.9 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.792e-05/1.794e-05, allocations: 4 kB / 337.1 MB, free: 9.945 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1145, allocations: 50.42 MB / 387.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3495/0.464, allocations: 80.94 MB / 468.5 MB, free: 13.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.4643, allocations: 83.95 kB / 468.6 MB, free: 13.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02525/0.4895, allocations: 9.005 MB / 477.6 MB, free: 4.691 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.975e-06/0.4896, allocations: 4 kB / 477.6 MB, free: 4.688 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.442e-05/0.4896, allocations: 12 kB / 477.6 MB, free: 4.676 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006791/0.4903, allocations: 0.5274 MB / 478.1 MB, free: 4.098 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.4903, allocations: 12.03 kB / 478.1 MB, free: 4.086 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.946e-05/0.4904, allocations: 27.62 kB / 478.2 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004606/0.4909, allocations: 306.4 kB / 478.5 MB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.4909, allocations: 15.94 kB / 478.5 MB, free: 3.699 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.384e-05/0.4909, allocations: 8 kB / 478.5 MB, free: 3.691 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001571/0.4911, allocations: 71.97 kB / 478.6 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/0.4915, allocations: 297.9 kB / 478.8 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.4916, allocations: 0 / 478.8 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.4916, allocations: 3.984 kB / 478.9 MB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4916, allocations: 4 kB / 478.9 MB, free: 3.297 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005082/0.4921, allocations: 390.9 kB / 479.2 MB, free: 2.871 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002361/0.4924, allocations: 172 kB / 479.4 MB, free: 2.676 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.4925, allocations: 86.69 kB / 479.5 MB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.4925, allocations: 16.17 kB / 479.5 MB, free: 2.566 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001258/0.4927, allocations: 79.31 kB / 479.6 MB, free: 2.477 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 4.328e-06/0.4927, allocations: 3.984 kB / 479.6 MB, free: 2.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003359/0.493, allocations: 177.2 kB / 479.8 MB, free: 2.293 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.843e-05/0.4931, allocations: 166.2 kB / 479.9 MB, free: 2.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003101/0.4934, allocations: 310.2 kB / 480.2 MB, free: 1.789 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.4935, allocations: 25.7 kB / 480.2 MB, free: 1.758 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.593e-05/0.4936, allocations: 136.6 kB / 480.4 MB, free: 1.621 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.4936, allocations: 31.64 kB / 480.4 MB, free: 1.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.155e-06/0.4936, allocations: 0 / 480.4 MB, free: 1.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.4938, allocations: 334.8 kB / 480.7 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.876e-05/0.4939, allocations: 40.45 kB / 480.8 MB, free: 1.211 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.494, allocations: 181.3 kB / 481 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.352e-05/0.4941, allocations: 59.92 kB / 481 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.4941, allocations: 0 / 481 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000302/0.4944, allocations: 205.5 kB / 481.2 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.4945, allocations: 11.95 kB / 481.2 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.4945, allocations: 4 kB / 481.2 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.4945, allocations: 4 kB / 481.2 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.4947, allocations: 43.92 kB / 481.3 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.4947, allocations: 7.938 kB / 481.3 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001585/0.4949, allocations: 15.89 kB / 481.3 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.4949, allocations: 12 kB / 481.3 MB, free: 0.6055 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001323/0.495, allocations: 125.3 kB / 481.4 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002855/0.4953, allocations: 189.3 kB / 481.6 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.169e-05/0.4954, allocations: 27.67 kB / 481.6 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002318/0.4956, allocations: 135.4 kB / 481.8 MB, free: 124 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.4956, allocations: 192 / 481.8 MB, free: 124 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.843e-05/0.4957, allocations: 8 kB / 481.8 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.4957, allocations: 0 / 481.8 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002591/0.496, allocations: 238 kB / 482 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.496, allocations: 0 / 482 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001434/0.4961, allocations: 35.92 kB / 482.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.4961, allocations: 0 / 482.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.4962, allocations: 11.94 kB / 482.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.4962, allocations: 0 / 482.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4962, allocations: 0 / 482.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003307/0.4965, allocations: 262.1 kB / 482.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001366/0.4967, allocations: 132.6 kB / 482.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.4967, allocations: 12.08 kB / 482.5 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.781e-05/0.4968, allocations: 3.938 kB / 482.5 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.94e-05/0.4969, allocations: 11.98 kB / 482.5 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.4969, allocations: 8 kB / 482.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000234/0.4971, allocations: 241.9 kB / 482.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4972, allocations: 0 / 482.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003503/0.4975, allocations: 47.94 kB / 482.8 MB, free: 15.03 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001483/0.499, allocations: 1.287 MB / 484.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002863/0.4993, allocations: 147.8 kB / 484.2 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4993, allocations: 1.062 kB / 484.2 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.936e-05/0.4994, allocations: 27.98 kB / 484.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004783/0.4999, allocations: 105.1 kB / 484.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008159/0.5007, allocations: 437.4 kB / 484.8 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.501, allocations: 0.7758 MB / 485.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.5012, allocations: 38.44 kB / 485.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.5013, allocations: 79.41 kB / 485.7 MB, free: 12.13 MB / 362.7 MB Notification: Performance of SimCode: time 3.31e-07/0.5013, allocations: 0 / 485.7 MB, free: 12.13 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0239/0.5252, allocations: 5.312 MB / 491 MB, free: 6.848 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000238/0.5255, allocations: 180.9 kB / 491.1 MB, free: 6.656 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.912/2.437, allocations: 0 / 491.1 MB, free: 6.656 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat does not exist to compare? outputFormat=mat