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: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") [: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.001631/0.001631, allocations: 190.7 kB / 7.846 MB, free: 2.516 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.275/1.275, allocations: 205.2 MB / 213.5 MB, free: 13.92 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.0009509/0.0009509, allocations: 88.7 kB / 261.5 MB, free: 13.54 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.06498/0.06498, allocations: 12.59 MB / 322 MB, free: 0.918 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.204e-05/1.207e-05, allocations: 4 kB / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09417/0.09419, allocations: 50.37 MB / 428.8 MB, free: 25.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3129/0.4072, allocations: 81.54 MB / 0.4983 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.4075, allocations: 80.48 kB / 0.4984 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02156/0.4291, allocations: 8.223 MB / 0.5064 GB, free: 9.992 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.449e-05/0.4291, allocations: 12.72 kB / 0.5065 GB, free: 9.984 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.000649/0.4298, allocations: 0.5195 MB / 0.507 GB, free: 9.496 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.4299, allocations: 7.688 kB / 0.507 GB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.917e-05/0.43, allocations: 31 kB / 0.507 GB, free: 9.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005229/0.4305, allocations: 307.3 kB / 0.5073 GB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.629e-05/0.4305, allocations: 5.156 kB / 0.5073 GB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.4306, allocations: 7.625 kB / 0.5073 GB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002643/0.4309, allocations: 78.59 kB / 0.5074 GB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000613/0.4315, allocations: 298.9 kB / 0.5077 GB, free: 9.062 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.4315, allocations: 0 / 0.5077 GB, free: 9.062 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.4315, allocations: 8.984 kB / 0.5077 GB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.4316, allocations: 6.594 kB / 0.5077 GB, free: 9.051 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006112/0.4322, allocations: 400.8 kB / 0.5081 GB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002725/0.4325, allocations: 169.1 kB / 0.5082 GB, free: 8.648 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.4326, allocations: 89.44 kB / 0.5083 GB, free: 8.617 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.164e-05/0.4326, allocations: 14 kB / 0.5083 GB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000101/0.4328, allocations: 70.47 kB / 0.5084 GB, free: 8.555 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.655e-06/0.4328, allocations: 0 / 0.5084 GB, free: 8.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003872/0.4332, allocations: 171.2 kB / 0.5086 GB, free: 8.492 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.62e-05/0.4332, allocations: 167.5 kB / 0.5087 GB, free: 8.297 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003424/0.4336, allocations: 304.7 kB / 0.509 GB, free: 8.164 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.4336, allocations: 27.05 kB / 0.509 GB, free: 8.133 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.533e-05/0.4337, allocations: 103.8 kB / 0.5091 GB, free: 8.039 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.968e-05/0.4337, allocations: 28.28 kB / 0.5092 GB, free: 8.023 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-06/0.4337, allocations: 0 / 0.5092 GB, free: 8.023 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.229e-05/0.4338, allocations: 341.6 kB / 0.5095 GB, free: 7.699 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.099e-05/0.4339, allocations: 34.84 kB / 0.5095 GB, free: 7.695 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.434, allocations: 180.4 kB / 0.5097 GB, free: 7.516 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001136/0.4341, allocations: 65.69 kB / 0.5098 GB, free: 7.496 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.4342, allocations: 2.125 kB / 0.5098 GB, free: 7.496 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003335/0.4345, allocations: 199.4 kB / 0.5099 GB, free: 7.414 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.4345, allocations: 4.812 kB / 0.5099 GB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.4345, allocations: 3.594 kB / 0.51 GB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.4346, allocations: 10.94 kB / 0.51 GB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.4347, allocations: 41.72 kB / 0.51 GB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.4348, allocations: 13.31 kB / 0.51 GB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.4349, allocations: 10.53 kB / 0.51 GB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.4349, allocations: 14.34 kB / 0.51 GB, free: 7.387 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 9.654e-05/0.435, allocations: 134.8 kB / 0.5102 GB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/0.4352, allocations: 131.4 kB / 0.5103 GB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000241/0.4355, allocations: 108.8 kB / 0.5104 GB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.4355, allocations: 7 kB / 0.5104 GB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.056e-06/0.4355, allocations: 1.5 kB / 0.5104 GB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.4355, allocations: 4.891 kB / 0.5104 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002163/0.4358, allocations: 243.7 kB / 0.5106 GB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.4358, allocations: 4.969 kB / 0.5106 GB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001455/0.4359, allocations: 30.73 kB / 0.5107 GB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.4359, allocations: 1.062 kB / 0.5107 GB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.436, allocations: 5.781 kB / 0.5107 GB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.436, allocations: 2.469 kB / 0.5107 GB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.436, allocations: 0 / 0.5107 GB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003119/0.4363, allocations: 250.9 kB / 0.5109 GB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.4364, allocations: 135.2 kB / 0.5111 GB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.321e-05/0.4365, allocations: 2.172 kB / 0.5111 GB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.4366, allocations: 7.109 kB / 0.5111 GB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.473e-05/0.4367, allocations: 11.61 kB / 0.5111 GB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.4367, allocations: 5.844 kB / 0.5111 GB, free: 6.648 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000254/0.4369, allocations: 238.4 kB / 0.5113 GB, free: 6.547 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003724/0.4373, allocations: 70.58 kB / 0.5114 GB, free: 6.523 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.0007048/0.438, allocations: 332.1 kB / 0.5117 GB, free: 6.277 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003199/0.4384, allocations: 153.4 kB / 0.5118 GB, free: 6.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.4384, allocations: 1.125 kB / 0.5118 GB, free: 6.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.723e-05/0.4384, allocations: 33.52 kB / 0.5119 GB, free: 6.246 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000476/0.4389, allocations: 102.4 kB / 0.512 GB, free: 6.219 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007297/0.4397, allocations: 347.5 kB / 0.5123 GB, free: 6.047 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003334/0.44, allocations: 0.8015 MB / 0.5131 GB, free: 5.293 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.44, allocations: 0 / 0.5131 GB, free: 5.293 MB / 330.7 MB Notification: Performance of Templates: time 0.007711/0.4477, allocations: 3.28 MB / 0.5163 GB, free: 3.672 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (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 & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches