Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.001707/0.001707, allocations: 193 kB / 7.851 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 1.905/1.905, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.00127/0.00127, allocations: 93.5 kB / 261.5 MB, free: 13.62 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.1229/0.1229, allocations: 12.59 MB / 322 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2978/0.4207, allocations: 56.5 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.523, allocations: 50.37 MB / 428.9 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3335/0.8566, allocations: 81.54 MB / 0.4984 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003771/0.857, allocations: 78.3 kB / 0.4985 GB, free: 11.98 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.05073/0.9078, allocations: 8.75 MB / 0.5071 GB, free: 9.754 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.326e-05/0.9079, allocations: 9.438 kB / 0.5071 GB, free: 9.754 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.908, allocations: 29.41 kB / 0.5071 GB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009262/0.909, allocations: 308.9 kB / 0.5074 GB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.825e-05/0.909, allocations: 4.688 kB / 0.5074 GB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.9091, allocations: 12.09 kB / 0.5074 GB, free: 9.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004352/0.9096, allocations: 79.97 kB / 0.5075 GB, free: 9.469 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009353/0.9105, allocations: 295.6 kB / 0.5078 GB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.9106, allocations: 0 / 0.5078 GB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.9106, allocations: 1.094 kB / 0.5078 GB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.9107, allocations: 6.938 kB / 0.5078 GB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.9118, allocations: 406.5 kB / 0.5082 GB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005701/0.9125, allocations: 173.5 kB / 0.5083 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003105/0.9128, allocations: 94.77 kB / 0.5084 GB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.856e-05/0.9129, allocations: 5.75 kB / 0.5084 GB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001911/0.9131, allocations: 74.17 kB / 0.5085 GB, free: 8.812 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 4.409e-06/0.9131, allocations: 0.9375 kB / 0.5085 GB, free: 8.812 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007852/0.9139, allocations: 174.3 kB / 0.5087 GB, free: 8.746 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.914, allocations: 163.7 kB / 0.5088 GB, free: 8.555 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000809/0.9148, allocations: 302.1 kB / 0.5091 GB, free: 8.426 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/0.9149, allocations: 25.7 kB / 0.5091 GB, free: 8.395 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.553e-05/0.915, allocations: 107.1 kB / 0.5092 GB, free: 8.297 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.491e-05/0.9151, allocations: 24.67 kB / 0.5093 GB, free: 8.285 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.506e-05/0.9151, allocations: 0 / 0.5093 GB, free: 8.285 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.9153, allocations: 342.6 kB / 0.5096 GB, free: 7.961 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.9154, allocations: 34.59 kB / 0.5096 GB, free: 7.957 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002852/0.9158, allocations: 184.4 kB / 0.5098 GB, free: 7.773 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.916, allocations: 63.94 kB / 0.5099 GB, free: 7.754 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/0.916, allocations: 1.156 kB / 0.5099 GB, free: 7.754 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000723/0.9168, allocations: 195.7 kB / 0.51 GB, free: 7.676 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.9168, allocations: 4.375 kB / 0.51 GB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.9168, allocations: 5.031 kB / 0.5101 GB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.24e-05/0.9169, allocations: 10.06 kB / 0.5101 GB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003837/0.9173, allocations: 48.34 kB / 0.5101 GB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.903e-05/0.9173, allocations: 6.156 kB / 0.5101 GB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004249/0.9178, allocations: 10.12 kB / 0.5101 GB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.102e-05/0.9178, allocations: 10.91 kB / 0.5101 GB, free: 7.652 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.table.combiTimeTable.nextTimeEvent,sample.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,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.0001952/0.918, allocations: 135.7 kB / 0.5103 GB, free: 7.527 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004582/0.9185, allocations: 131.7 kB / 0.5104 GB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005444/0.9191, allocations: 113.9 kB / 0.5105 GB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.9191, allocations: 7.719 kB / 0.5105 GB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.9191, allocations: 5.188 kB / 0.5105 GB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.9192, allocations: 5.078 kB / 0.5105 GB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004746/0.9197, allocations: 249.7 kB / 0.5108 GB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.9197, allocations: 0 / 0.5108 GB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003711/0.9201, allocations: 29.98 kB / 0.5108 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.124e-05/0.9201, allocations: 1.094 kB / 0.5108 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.717e-05/0.9202, allocations: 2.344 kB / 0.5108 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/0.9202, allocations: 6.516 kB / 0.5108 GB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.9202, allocations: 3.938 kB / 0.5108 GB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007612/0.921, allocations: 248.7 kB / 0.511 GB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007312/0.9217, allocations: 0.6287 MB / 0.5116 GB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/0.922, allocations: 131.5 kB / 0.5118 GB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.9222, allocations: 2.312 kB / 0.5118 GB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.9224, allocations: 7.469 kB / 0.5118 GB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.515e-05/0.9225, allocations: 11.39 kB / 0.5118 GB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.252e-05/0.9226, allocations: 5.531 kB / 0.5118 GB, free: 6.375 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0005587/0.9232, allocations: 241.3 kB / 0.512 GB, free: 6.273 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002355/0.9255, allocations: 58.06 kB / 0.5121 GB, free: 6.266 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,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,sample.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.001232/0.9268, allocations: 347.6 kB / 0.5124 GB, free: 6.004 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006207/0.9274, allocations: 146.2 kB / 0.5126 GB, free: 5.98 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.9275, allocations: 1.062 kB / 0.5126 GB, free: 5.98 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.9276, allocations: 32.56 kB / 0.5126 GB, free: 5.977 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009558/0.9286, allocations: 106.3 kB / 0.5127 GB, free: 5.949 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00133/0.9299, allocations: 345.7 kB / 0.513 GB, free: 5.777 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005513/0.9305, allocations: 0.8061 MB / 0.5138 GB, free: 5.02 MB / 330.7 MB Notification: Performance of SimCode: time 1.162e-06/0.9305, allocations: 0.9688 kB / 0.5138 GB, free: 5.02 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1)