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"}) [: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 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 185.7 kB / 8.135 MB, free: 2.219 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.118/1.118, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009716/0.0009714, allocations: 98.3 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08769/0.08869, allocations: 55.83 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.2698, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.081/0.3509, allocations: 80.79 MB / 467.8 MB, free: 5.988 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.3511, allocations: 84.52 kB / 467.9 MB, free: 5.906 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.02355/0.3747, allocations: 8.899 MB / 476.8 MB, free: 13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.3747, allocations: 8 kB / 476.8 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.119e-05/0.3748, allocations: 31.61 kB / 476.8 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004144/0.3752, allocations: 285.5 kB / 477.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.3753, allocations: 4 kB / 477.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.266e-05/0.3753, allocations: 12 kB / 477.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001458/0.3754, allocations: 63.92 kB / 477.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004053/0.3759, allocations: 268.1 kB / 477.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.3759, allocations: 0 / 477.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.3759, allocations: 3.906 kB / 477.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.3759, allocations: 4 kB / 477.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004642/0.3764, allocations: 355 kB / 477.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.3766, allocations: 151.9 kB / 477.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.3767, allocations: 82.69 kB / 478 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.3768, allocations: 12.34 kB / 478 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.942e-05/0.3769, allocations: 67.41 kB / 478.1 MB, free: 11.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.084e-06/0.3769, allocations: 0 / 478.1 MB, free: 11.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003064/0.3772, allocations: 146.3 kB / 478.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.101e-05/0.3773, allocations: 148.4 kB / 478.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.3775, allocations: 240 kB / 478.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.3775, allocations: 25.7 kB / 478.6 MB, free: 10.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.556e-05/0.3776, allocations: 96.53 kB / 478.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.865e-05/0.3776, allocations: 32.95 kB / 478.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.201e-06/0.3777, allocations: 0 / 478.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.3778, allocations: 334.7 kB / 479.1 MB, free: 10.47 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.977e-05/0.3778, allocations: 32.47 kB / 479.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/0.378, allocations: 157.9 kB / 479.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.862e-05/0.3781, allocations: 60.98 kB / 479.3 MB, free: 10.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3781, allocations: 0 / 479.3 MB, free: 10.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002836/0.3784, allocations: 189.3 kB / 479.5 MB, free: 9.969 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.3784, allocations: 8 kB / 479.5 MB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.3784, allocations: 4 kB / 479.5 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.3784, allocations: 4 kB / 479.5 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.554e-05/0.3785, allocations: 31.84 kB / 479.6 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.3785, allocations: 7.938 kB / 479.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.3787, allocations: 9.219 kB / 479.6 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.3787, allocations: 16.28 kB / 479.6 MB, free: 9.891 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 9.454e-05/0.3788, allocations: 137.8 kB / 479.7 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/0.379, allocations: 109.3 kB / 479.9 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001804/0.3792, allocations: 101.7 kB / 480 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.3792, allocations: 4 kB / 480 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.3792, allocations: 0 / 480 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3792, allocations: 4.656 kB / 480 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/0.3794, allocations: 214 kB / 480.2 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3794, allocations: 4 kB / 480.2 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.689e-05/0.3794, allocations: 15.94 kB / 480.2 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.3795, allocations: 7.984 kB / 480.2 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.3795, allocations: 4.125 kB / 480.2 MB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3795, allocations: 4 kB / 480.2 MB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.3795, allocations: 0.75 kB / 480.2 MB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002695/0.3798, allocations: 240.3 kB / 480.4 MB, free: 8.973 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003733/0.3801, allocations: 0.588 MB / 481 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.3803, allocations: 128.8 kB / 481.2 MB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.21e-05/0.3803, allocations: 4.938 kB / 481.2 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.238e-05/0.3804, allocations: 4 kB / 481.2 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.378e-05/0.3805, allocations: 3.984 kB / 481.2 MB, free: 8.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.3805, allocations: 12 kB / 481.2 MB, free: 8.176 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001678/0.3806, allocations: 188.5 kB / 481.4 MB, free: 7.988 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008569/0.3815, allocations: 43.98 kB / 481.4 MB, free: 7.945 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.0006387/0.3822, allocations: 330.2 kB / 481.7 MB, free: 7.703 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002358/0.3824, allocations: 131.7 kB / 481.9 MB, free: 7.574 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3824, allocations: 1.062 kB / 481.9 MB, free: 7.574 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.886e-05/0.3825, allocations: 27.98 kB / 481.9 MB, free: 7.547 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.3829, allocations: 109.9 kB / 482 MB, free: 7.445 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005282/0.3834, allocations: 281.5 kB / 482.3 MB, free: 7.145 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003988/0.3838, allocations: 0.7905 MB / 483.1 MB, free: 6.324 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3838, allocations: 0 / 483.1 MB, free: 6.324 MB / 362.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)