Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_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 3.2.3+maint.om/package.mo): time 0.002753/0.002753, allocations: 194.5 kB / 7.852 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.099/2.099, allocations: 205.2 MB / 213.4 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00251/0.00251, allocations: 90 kB / 261.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1013/0.1013, allocations: 12.59 MB / 322 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.278/0.3793, allocations: 56.49 MB / 378.5 MB, free: 75.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.5399, allocations: 50.37 MB / 428.9 MB, free: 25.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.554/1.094, allocations: 81.47 MB / 0.4984 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003624/1.094, allocations: 84 kB / 0.4984 GB, free: 11.89 MB / 330.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.05991/1.154, allocations: 8.49 MB / 0.5067 GB, free: 9.793 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.005e-05/1.154, allocations: 11.22 kB / 0.5067 GB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/1.155, allocations: 22.97 kB / 0.5068 GB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/1.156, allocations: 281.1 kB / 0.507 GB, free: 9.539 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.427e-05/1.156, allocations: 3.656 kB / 0.507 GB, free: 9.539 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/1.156, allocations: 7.531 kB / 0.5071 GB, free: 9.539 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007917/1.157, allocations: 66.47 kB / 0.5071 GB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008971/1.158, allocations: 272.6 kB / 0.5074 GB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/1.158, allocations: 0 / 0.5074 GB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/1.158, allocations: 0 / 0.5074 GB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/1.158, allocations: 3.844 kB / 0.5074 GB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009899/1.159, allocations: 364.2 kB / 0.5077 GB, free: 9.09 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/1.16, allocations: 159.6 kB / 0.5079 GB, free: 9 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003903/1.16, allocations: 71.77 kB / 0.5079 GB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.19e-05/1.16, allocations: 6.984 kB / 0.508 GB, free: 8.973 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/1.161, allocations: 64.69 kB / 0.508 GB, free: 8.922 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 5.511e-06/1.161, allocations: 3.938 kB / 0.508 GB, free: 8.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007553/1.161, allocations: 158.8 kB / 0.5082 GB, free: 8.855 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/1.162, allocations: 139.1 kB / 0.5083 GB, free: 8.695 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006139/1.162, allocations: 239.4 kB / 0.5085 GB, free: 8.574 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/1.162, allocations: 25.7 kB / 0.5086 GB, free: 8.543 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/1.163, allocations: 97.41 kB / 0.5086 GB, free: 8.457 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/1.163, allocations: 29.27 kB / 0.5087 GB, free: 8.441 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.374e-05/1.163, allocations: 0 / 0.5087 GB, free: 8.441 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002016/1.163, allocations: 335.9 kB / 0.509 GB, free: 8.117 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003879/1.164, allocations: 33.56 kB / 0.509 GB, free: 8.113 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003345/1.164, allocations: 158.6 kB / 0.5092 GB, free: 7.945 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/1.164, allocations: 58.72 kB / 0.5092 GB, free: 7.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/1.164, allocations: 1.156 kB / 0.5092 GB, free: 7.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007673/1.165, allocations: 183.9 kB / 0.5094 GB, free: 7.852 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/1.165, allocations: 5.281 kB / 0.5094 GB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/1.165, allocations: 8.203 kB / 0.5094 GB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.813e-05/1.165, allocations: 10.45 kB / 0.5094 GB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002165/1.165, allocations: 26.78 kB / 0.5095 GB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.834e-05/1.165, allocations: 9.609 kB / 0.5095 GB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003503/1.166, allocations: 22.97 kB / 0.5095 GB, free: 7.816 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.733e-05/1.166, allocations: 13.5 kB / 0.5095 GB, free: 7.816 MB / 330.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,sample.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,sample.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.0003417/1.166, allocations: 118.1 kB / 0.5096 GB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000941/1.167, allocations: 112.5 kB / 0.5097 GB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004588/1.168, allocations: 103.7 kB / 0.5098 GB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/1.168, allocations: 2.188 kB / 0.5098 GB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/1.168, allocations: 1.062 kB / 0.5098 GB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/1.168, allocations: 9.031 kB / 0.5098 GB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004177/1.168, allocations: 216.5 kB / 0.51 GB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/1.168, allocations: 1.062 kB / 0.51 GB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/1.168, allocations: 7.625 kB / 0.51 GB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.169e-05/1.168, allocations: 2.031 kB / 0.5101 GB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/1.168, allocations: 12.86 kB / 0.5101 GB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.686e-06/1.168, allocations: 5.156 kB / 0.5101 GB, free: 7.395 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.168, allocations: 1.156 kB / 0.5101 GB, free: 7.395 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000631/1.169, allocations: 224.5 kB / 0.5103 GB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001405/1.17, allocations: 0.6027 MB / 0.5109 GB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002917/1.171, allocations: 130.2 kB / 0.511 GB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/1.171, allocations: 2.406 kB / 0.511 GB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/1.171, allocations: 4.5 kB / 0.511 GB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.58e-05/1.171, allocations: 7.047 kB / 0.511 GB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.016e-05/1.171, allocations: 8.906 kB / 0.511 GB, free: 6.602 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0004516/1.172, allocations: 192.3 kB / 0.5112 GB, free: 6.504 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003245/1.175, allocations: 47.19 kB / 0.5112 GB, free: 6.496 MB / 330.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,sample.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,sample.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.002298/1.177, allocations: 330.9 kB / 0.5116 GB, free: 6.234 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006743/1.178, allocations: 125.9 kB / 0.5117 GB, free: 6.219 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/1.178, allocations: 5.406 kB / 0.5117 GB, free: 6.215 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001131/1.178, allocations: 27.31 kB / 0.5117 GB, free: 6.211 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/1.18, allocations: 93.31 kB / 0.5118 GB, free: 6.191 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/1.181, allocations: 278.2 kB / 0.5121 GB, free: 6.047 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005661/1.182, allocations: 0.7928 MB / 0.5128 GB, free: 5.293 MB / 330.7 MB Notification: Performance of SimCode: time 1.834e-06/1.182, allocations: 288 / 0.5128 GB, free: 5.293 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1)