Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete") translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete") [: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.001158/0.001158, allocations: 178.7 kB / 8.519 MB, free: 1.859 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.293/1.293, allocations: 221.4 MB / 230.3 MB, free: 7.688 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.0009463/0.0009463, allocations: 89.84 kB / 281.2 MB, free: 5.52 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1718/0.1718, allocations: 44.15 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.502e-06/6.532e-06, allocations: 224 / 444 MB, free: 15.63 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1347, allocations: 61.9 MB / 0.4941 GB, free: 1.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3744/0.5091, allocations: 88.18 MB / 0.5802 GB, free: 8.602 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001679/0.5093, allocations: 63.56 kB / 0.5802 GB, free: 8.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01175/0.5211, allocations: 3.687 MB / 0.5838 GB, free: 4.926 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.5211, allocations: 8 kB / 0.5839 GB, free: 4.918 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001045/0.5222, allocations: 0.5681 MB / 0.5844 GB, free: 4.301 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.5222, allocations: 12.19 kB / 0.5844 GB, free: 4.289 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.266e-05/0.5223, allocations: 31.62 kB / 0.5845 GB, free: 4.258 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.5226, allocations: 251.5 kB / 0.5847 GB, free: 3.969 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.5227, allocations: 11.98 kB / 0.5847 GB, free: 3.957 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.713e-05/0.5227, allocations: 16 kB / 0.5847 GB, free: 3.941 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000245/0.523, allocations: 115.9 kB / 0.5848 GB, free: 3.828 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.5233, allocations: 197.5 kB / 0.585 GB, free: 3.629 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.689e-06/0.5233, allocations: 0 / 0.585 GB, free: 3.629 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/0.5233, allocations: 7.984 kB / 0.585 GB, free: 3.621 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.5234, allocations: 12 kB / 0.585 GB, free: 3.609 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008558/0.5242, allocations: 0.5045 MB / 0.5855 GB, free: 3.066 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.5246, allocations: 259 kB / 0.5858 GB, free: 2.805 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.5248, allocations: 108.8 kB / 0.5859 GB, free: 2.695 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.714e-05/0.5248, allocations: 15.97 kB / 0.5859 GB, free: 2.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003229/0.5252, allocations: 207.2 kB / 0.5861 GB, free: 2.465 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 1.913e-06/0.5252, allocations: 0 / 0.5861 GB, free: 2.465 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.0006157/0.5258, allocations: 317.4 kB / 0.5864 GB, free: 2.148 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/0.5259, allocations: 71.39 kB / 0.5865 GB, free: 2.066 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.5261, allocations: 186.9 kB / 0.5866 GB, free: 1.875 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.795e-05/0.5261, allocations: 41.69 kB / 0.5867 GB, free: 1.828 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.519e-05/0.5262, allocations: 105 kB / 0.5868 GB, free: 1.719 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.224e-05/0.5263, allocations: 98.8 kB / 0.5869 GB, free: 1.621 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.373e-05/0.5263, allocations: 4 kB / 0.5869 GB, free: 1.617 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.5264, allocations: 342.8 kB / 0.5872 GB, free: 1.273 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.5266, allocations: 77.31 kB / 0.5873 GB, free: 1.199 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.5268, allocations: 273 kB / 0.5875 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.5271, allocations: 123.9 kB / 0.5877 GB, free: 0.7266 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.5271, allocations: 7.906 kB / 0.5877 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005343/0.5276, allocations: 371.6 kB / 0.588 GB, free: 360 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.5277, allocations: 7.938 kB / 0.588 GB, free: 352 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.5277, allocations: 8 kB / 0.588 GB, free: 344 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.5277, allocations: 11.98 kB / 0.588 GB, free: 332 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.5279, allocations: 63.84 kB / 0.5881 GB, free: 268 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.5279, allocations: 11.94 kB / 0.5881 GB, free: 256 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.5282, allocations: 35.92 kB / 0.5882 GB, free: 220 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.75e-05/0.5282, allocations: 20 kB / 0.5882 GB, free: 200 kB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,sampler.y,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001365/0.5283, allocations: 156.8 kB / 0.5883 GB, free: 36 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.013e-05/0.5284, allocations: 31.62 kB / 0.5884 GB, free: 4 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.051e-05/0.5285, allocations: 22.77 kB / 0.5884 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.5285, allocations: 8 kB / 0.5884 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.5285, allocations: 4 kB / 0.5884 GB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.5285, allocations: 0 / 0.5884 GB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.5297, allocations: 0.7528 MB / 0.5891 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.5297, allocations: 0 / 0.5891 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.439e-05/0.5298, allocations: 15.98 kB / 0.5891 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.5298, allocations: 7.984 kB / 0.5891 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.5298, allocations: 15.89 kB / 0.5892 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.383e-06/0.5298, allocations: 11.88 kB / 0.5892 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.5299, allocations: 0 / 0.5892 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005001/0.5304, allocations: 423.7 kB / 0.5896 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.097e-05/0.5304, allocations: 100.7 kB / 0.5897 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.535e-05/0.5305, allocations: 19.97 kB / 0.5897 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.5308, allocations: 31.97 kB / 0.5897 GB, free: 14.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.075e-05/0.5308, allocations: 23.97 kB / 0.5897 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/0.5309, allocations: 19.97 kB / 0.5898 GB, free: 14.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001087/0.531, allocations: 144.2 kB / 0.5899 GB, free: 14.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003598/0.5314, allocations: 63.84 kB / 0.59 GB, free: 14.28 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulseStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.0001706/0.5315, allocations: 127.2 kB / 0.5901 GB, free: 14.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004614/0.532, allocations: 289.1 kB / 0.5904 GB, free: 13.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.532, allocations: 128 / 0.5904 GB, free: 13.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002125/0.5322, allocations: 151.8 kB / 0.5905 GB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/0.5325, allocations: 31.97 kB / 0.5905 GB, free: 13.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009941/0.5336, allocations: 381.6 kB / 0.5909 GB, free: 13.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004663/0.534, allocations: 0.799 MB / 0.5917 GB, free: 12.46 MB / 410.7 MB Notification: Performance of SimCode: time 3.01e-07/0.534, allocations: 3.938 kB / 0.5917 GB, free: 12.46 MB / 410.7 MB Notification: Performance of Templates: time 0.005805/0.5399, allocations: 2.99 MB / 0.5946 GB, free: 9.496 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Discrete/Discrete.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches