Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.001364/0.001364, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 221.3 MB / 235.5 MB, free: 2.957 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.0008445/0.0008445, allocations: 89.95 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.167e-05/2.17e-05, allocations: 0 / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09665/0.09669, allocations: 50.42 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3062/0.4029, allocations: 81.53 MB / 475.9 MB, free: 5.953 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/0.4031, allocations: 87.94 kB / 476 MB, free: 5.867 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02341/0.4265, allocations: 8.849 MB / 484.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4266, allocations: 4 kB / 484.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.4266, allocations: 4 kB / 484.8 MB, free: 13.01 MB / 362.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.0006235/0.4272, allocations: 0.4925 MB / 485.3 MB, free: 12.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.4273, allocations: 8.031 kB / 485.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.487e-05/0.4274, allocations: 50.5 kB / 485.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.795e-05/0.4274, allocations: 27.62 kB / 485.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004151/0.4278, allocations: 273.7 kB / 485.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.4279, allocations: 12 kB / 485.7 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.179e-05/0.4279, allocations: 12 kB / 485.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005128/0.4284, allocations: 302.1 kB / 486 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.4285, allocations: 0 / 486 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.4285, allocations: 7.953 kB / 486 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-06/0.4285, allocations: 4 kB / 486 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.4287, allocations: 59.94 kB / 486.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005211/0.4292, allocations: 382.5 kB / 486.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002573/0.4294, allocations: 177.1 kB / 486.6 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.4296, allocations: 90.67 kB / 486.7 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.4296, allocations: 240 / 486.7 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/0.4297, allocations: 87.31 kB / 486.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.532e-06/0.4298, allocations: 0 / 486.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003256/0.4301, allocations: 173.3 kB / 486.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/0.4302, allocations: 144.5 kB / 487.1 MB, free: 10.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/0.4305, allocations: 245 kB / 487.3 MB, free: 10.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.4305, allocations: 33.7 kB / 487.4 MB, free: 10.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.192e-05/0.4306, allocations: 120.6 kB / 487.5 MB, free: 10.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.125e-05/0.4306, allocations: 27.64 kB / 487.5 MB, free: 10.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-06/0.4306, allocations: 4 kB / 487.5 MB, free: 10.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.4308, allocations: 338.8 kB / 487.8 MB, free: 9.711 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.611e-05/0.4309, allocations: 36.47 kB / 487.9 MB, free: 9.672 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.431, allocations: 162.1 kB / 488 MB, free: 9.453 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.4312, allocations: 63.95 kB / 488.1 MB, free: 9.391 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.4312, allocations: 7.891 kB / 488.1 MB, free: 9.383 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003127/0.4315, allocations: 221 kB / 488.3 MB, free: 9.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.4315, allocations: 4 kB / 488.3 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.4315, allocations: 4 kB / 488.3 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.4315, allocations: 8 kB / 488.3 MB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.4317, allocations: 24.45 kB / 488.4 MB, free: 9.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.4317, allocations: 11.94 kB / 488.4 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.4318, allocations: 15.98 kB / 488.4 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.4318, allocations: 16.09 kB / 488.4 MB, free: 9.078 MB / 362.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.table1.combiTimeTable.nextTimeEvent,sample1.u,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,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.0001164/0.4319, allocations: 131 kB / 488.5 MB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001748/0.4321, allocations: 129.3 kB / 488.6 MB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002111/0.4323, allocations: 115.4 kB / 488.8 MB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.4324, allocations: 4 kB / 488.8 MB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4324, allocations: 4 kB / 488.8 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.4324, allocations: 0 / 488.8 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.4326, allocations: 253.4 kB / 489 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.4326, allocations: 0 / 489 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.846e-05/0.4327, allocations: 19.94 kB / 489 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.4327, allocations: 4.125 kB / 489 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.4327, allocations: 8 kB / 489 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.4327, allocations: 7.938 kB / 489.1 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4327, allocations: 0 / 489.1 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002966/0.433, allocations: 245.8 kB / 489.3 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.4332, allocations: 124.8 kB / 489.4 MB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.614e-05/0.4332, allocations: 8 kB / 489.4 MB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.712e-05/0.4333, allocations: 8 kB / 489.4 MB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.27e-05/0.4333, allocations: 11.98 kB / 489.4 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.4334, allocations: 8 kB / 489.5 MB, free: 7.891 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001895/0.4335, allocations: 189.4 kB / 489.6 MB, free: 7.703 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4336, allocations: 0 / 489.6 MB, free: 7.703 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003088/0.4339, allocations: 51.94 kB / 489.7 MB, free: 7.652 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,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.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.001571/0.4354, allocations: 1.283 MB / 491 MB, free: 6.449 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002974/0.4358, allocations: 148 kB / 491.1 MB, free: 6.309 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4358, allocations: 4.125 kB / 491.1 MB, free: 6.305 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.632e-05/0.4358, allocations: 31.94 kB / 491.2 MB, free: 6.273 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.4363, allocations: 92.73 kB / 491.2 MB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007979/0.4371, allocations: 369.9 kB / 491.6 MB, free: 5.777 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.4375, allocations: 0.7677 MB / 492.4 MB, free: 4.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.093e-05/0.4375, allocations: 26.06 kB / 492.4 MB, free: 4.953 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.4377, allocations: 71.41 kB / 492.5 MB, free: 4.883 MB / 362.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4377, allocations: 3.938 kB / 492.5 MB, free: 4.879 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.4551, allocations: 5.009 MB / 497.5 MB, free: 15.97 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/0.4554, allocations: 196.9 kB / 497.7 MB, free: 15.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/2.157, allocations: 0 / 497.7 MB, free: 15.75 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat does not exist to compare? outputFormat=mat