Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00179/0.00179, allocations: 204.2 kB / 8.536 MB, free: 464 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 225.5 MB / 234.4 MB, free: 9.477 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009499/0.0009499, allocations: 96.47 kB / 286.3 MB, free: 5.844 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1174/0.1184, allocations: 56.89 MB / 343.2 MB, free: 12.95 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.3647, allocations: 51.45 MB / 394.7 MB, free: 47.34 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09344/0.4582, allocations: 82.03 MB / 476.7 MB, free: 9.836 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/0.4585, allocations: 84.92 kB / 476.8 MB, free: 9.754 MB / 354.8 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.02778/0.4863, allocations: 9.689 MB / 486.5 MB, free: 124 kB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.4864, allocations: 8 kB / 486.5 MB, free: 116 kB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.767e-05/0.4865, allocations: 31.62 kB / 486.5 MB, free: 84 kB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005128/0.487, allocations: 282.9 kB / 486.8 MB, free: 15.77 MB / 370.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.487, allocations: 6.906 kB / 486.8 MB, free: 15.76 MB / 370.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.4871, allocations: 8 kB / 486.8 MB, free: 15.75 MB / 370.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001682/0.4872, allocations: 71.97 kB / 486.9 MB, free: 15.68 MB / 370.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004773/0.4877, allocations: 271.8 kB / 487.2 MB, free: 15.4 MB / 370.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.4877, allocations: 6.984 kB / 487.2 MB, free: 15.39 MB / 370.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.4878, allocations: 4 kB / 487.2 MB, free: 15.39 MB / 370.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.4878, allocations: 4 kB / 487.2 MB, free: 15.39 MB / 370.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005693/0.4884, allocations: 360.3 kB / 487.5 MB, free: 14.99 MB / 370.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/0.4886, allocations: 158.9 kB / 487.7 MB, free: 14.81 MB / 370.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.4888, allocations: 76.09 kB / 487.8 MB, free: 14.73 MB / 370.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.4888, allocations: 4.234 kB / 487.8 MB, free: 14.73 MB / 370.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001151/0.4889, allocations: 73.77 kB / 487.8 MB, free: 14.64 MB / 370.8 MB Notification: Performance of pre-optimization done (n=22): time 1.853e-06/0.4889, allocations: 0 / 487.8 MB, free: 14.64 MB / 370.8 MB Notification: Performance of matching and sorting (n=22): time 0.0003882/0.4893, allocations: 160.8 kB / 488 MB, free: 14.48 MB / 370.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.4894, allocations: 132.5 kB / 488.1 MB, free: 14.32 MB / 370.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.4897, allocations: 248.2 kB / 488.4 MB, free: 14.07 MB / 370.8 MB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.4898, allocations: 33.7 kB / 488.4 MB, free: 14.04 MB / 370.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.973e-05/0.4898, allocations: 96.62 kB / 488.5 MB, free: 13.93 MB / 370.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.349e-05/0.4899, allocations: 31.7 kB / 488.5 MB, free: 13.9 MB / 370.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-06/0.4899, allocations: 0 / 488.5 MB, free: 13.9 MB / 370.8 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.49, allocations: 330.8 kB / 488.8 MB, free: 13.57 MB / 370.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.257e-05/0.4901, allocations: 36.41 kB / 488.9 MB, free: 13.54 MB / 370.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.4902, allocations: 157.9 kB / 489 MB, free: 13.32 MB / 370.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.539e-05/0.4903, allocations: 59.95 kB / 489.1 MB, free: 13.26 MB / 370.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4904, allocations: 0 / 489.1 MB, free: 13.26 MB / 370.8 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003/0.4907, allocations: 189 kB / 489.3 MB, free: 13.07 MB / 370.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.4907, allocations: 8.531 kB / 489.3 MB, free: 13.06 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.4907, allocations: 11.94 kB / 489.3 MB, free: 13.05 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.4907, allocations: 7.906 kB / 489.3 MB, free: 13.04 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.4908, allocations: 24.58 kB / 489.3 MB, free: 13.02 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.4909, allocations: 4 kB / 489.3 MB, free: 13.02 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.491, allocations: 9.562 kB / 489.3 MB, free: 13.01 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.395e-05/0.491, allocations: 23.92 kB / 489.4 MB, free: 12.98 MB / 370.8 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.0001096/0.4911, allocations: 123 kB / 489.5 MB, free: 12.86 MB / 370.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/0.4913, allocations: 118.4 kB / 489.6 MB, free: 12.74 MB / 370.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001983/0.4915, allocations: 101.5 kB / 489.7 MB, free: 12.64 MB / 370.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.4915, allocations: 0 / 489.7 MB, free: 12.64 MB / 370.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.4916, allocations: 4 kB / 489.7 MB, free: 12.63 MB / 370.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4916, allocations: 0 / 489.7 MB, free: 12.63 MB / 370.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001997/0.4918, allocations: 218.1 kB / 489.9 MB, free: 12.38 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4918, allocations: 0 / 489.9 MB, free: 12.38 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.291e-05/0.4918, allocations: 25.45 kB / 489.9 MB, free: 12.36 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4918, allocations: 1.688 kB / 489.9 MB, free: 12.36 MB / 370.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.4919, allocations: 4 kB / 489.9 MB, free: 12.36 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.4919, allocations: 4 kB / 489.9 MB, free: 12.35 MB / 370.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4919, allocations: 0 / 489.9 MB, free: 12.35 MB / 370.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002878/0.4922, allocations: 221.9 kB / 490.2 MB, free: 12.1 MB / 370.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004213/0.4926, allocations: 0.6114 MB / 490.8 MB, free: 11.45 MB / 370.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.4927, allocations: 124.8 kB / 490.9 MB, free: 11.3 MB / 370.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.672e-05/0.4928, allocations: 7.984 kB / 490.9 MB, free: 11.3 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.604e-05/0.4929, allocations: 8 kB / 490.9 MB, free: 11.29 MB / 370.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.791e-05/0.4929, allocations: 4 kB / 490.9 MB, free: 11.29 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.493, allocations: 7.984 kB / 490.9 MB, free: 11.28 MB / 370.8 MB Notification: Performance of sort global known variables: time 0.0002221/0.4932, allocations: 196.5 kB / 491.1 MB, free: 11.09 MB / 370.8 MB Notification: Performance of remove unused functions: time 0.0009177/0.4941, allocations: 51.84 kB / 491.2 MB, free: 11.04 MB / 370.8 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.0007128/0.4948, allocations: 338.3 kB / 491.5 MB, free: 10.83 MB / 370.8 MB Notification: Performance of simCode: created initialization part: time 0.0002661/0.4951, allocations: 127.7 kB / 491.6 MB, free: 10.71 MB / 370.8 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4951, allocations: 3.938 kB / 491.6 MB, free: 10.7 MB / 370.8 MB Notification: Performance of simCode: created simulation system equations: time 6.104e-05/0.4952, allocations: 24 kB / 491.6 MB, free: 10.68 MB / 370.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.4956, allocations: 95.84 kB / 491.7 MB, free: 10.59 MB / 370.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006229/0.4963, allocations: 289.5 kB / 492 MB, free: 10.28 MB / 370.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004807/0.4968, allocations: 0.7829 MB / 492.8 MB, free: 9.465 MB / 370.8 MB Notification: Performance of SimCode: time 2.4e-07/0.4968, allocations: 1.781 kB / 492.8 MB, free: 9.465 MB / 370.8 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat does not exist to compare? outputFormat=mat