Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001258/0.001258, allocations: 196.2 kB / 8.535 MB, free: 480 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.209/1.209, allocations: 225.5 MB / 234.4 MB, free: 9.547 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000892/0.000892, allocations: 93.59 kB / 286.3 MB, free: 5.926 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2627/0.2627, allocations: 45.16 MB / 383.4 MB, free: 4.949 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 7.424e-06/7.454e-06, allocations: 0 / 452.6 MB, free: 48.33 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1155, allocations: 63.24 MB / 0.5038 GB, free: 1.027 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3664/0.482, allocations: 89.23 MB / 0.5909 GB, free: 14.59 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/0.4823, allocations: 63.97 kB / 0.591 GB, free: 14.52 MB / 418.8 MB Notification: Performance of FrontEnd: time 0.01256/0.4949, allocations: 3.787 MB / 0.5947 GB, free: 10.71 MB / 418.8 MB Notification: Performance of Transformations before backend: time 1.621e-05/0.4949, allocations: 4 kB / 0.5947 GB, free: 10.71 MB / 418.8 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.00108/0.496, allocations: 0.5764 MB / 0.5952 GB, free: 10.09 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.4961, allocations: 15.91 kB / 0.5952 GB, free: 10.07 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000224/0.4963, allocations: 43.61 kB / 0.5953 GB, free: 10.03 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003253/0.4966, allocations: 243.6 kB / 0.5955 GB, free: 9.75 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.4967, allocations: 15.98 kB / 0.5955 GB, free: 9.734 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.774e-05/0.4967, allocations: 12 kB / 0.5955 GB, free: 9.723 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002532/0.497, allocations: 116 kB / 0.5957 GB, free: 9.609 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003316/0.4973, allocations: 193.5 kB / 0.5958 GB, free: 9.414 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.4973, allocations: 0 / 0.5958 GB, free: 9.414 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.4974, allocations: 11.98 kB / 0.5958 GB, free: 9.402 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.4974, allocations: 4 kB / 0.5959 GB, free: 9.398 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009627/0.4984, allocations: 0.5045 MB / 0.5963 GB, free: 8.855 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004027/0.4988, allocations: 274.2 kB / 0.5966 GB, free: 8.582 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.499, allocations: 108.8 kB / 0.5967 GB, free: 8.473 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.499, allocations: 7.984 kB / 0.5967 GB, free: 8.465 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000308/0.4993, allocations: 211.2 kB / 0.5969 GB, free: 8.246 MB / 418.8 MB Notification: Performance of pre-optimization done (n=43): time 3.527e-06/0.4993, allocations: 4 kB / 0.5969 GB, free: 8.242 MB / 418.8 MB Notification: Performance of matching and sorting (n=43): time 0.0005563/0.4999, allocations: 313.4 kB / 0.5972 GB, free: 7.93 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.5, allocations: 75.38 kB / 0.5973 GB, free: 7.844 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.5001, allocations: 186.9 kB / 0.5975 GB, free: 7.656 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.5002, allocations: 33.7 kB / 0.5975 GB, free: 7.617 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.621e-05/0.5002, allocations: 109 kB / 0.5976 GB, free: 7.504 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.234e-05/0.5003, allocations: 102.8 kB / 0.5977 GB, free: 7.402 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.304e-05/0.5004, allocations: 0 / 0.5977 GB, free: 7.402 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.5005, allocations: 350.7 kB / 0.598 GB, free: 7.051 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/0.5006, allocations: 81.31 kB / 0.5981 GB, free: 6.973 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.5009, allocations: 265 kB / 0.5984 GB, free: 6.625 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.5011, allocations: 127.9 kB / 0.5985 GB, free: 6.5 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.5011, allocations: 0 / 0.5985 GB, free: 6.5 MB / 418.8 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005316/0.5016, allocations: 369.5 kB / 0.5988 GB, free: 6.133 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.5017, allocations: 4 kB / 0.5989 GB, free: 6.129 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.5017, allocations: 8 kB / 0.5989 GB, free: 6.121 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.5017, allocations: 8.781 kB / 0.5989 GB, free: 6.113 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.5019, allocations: 71.78 kB / 0.5989 GB, free: 6.043 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.089e-05/0.502, allocations: 15.97 kB / 0.599 GB, free: 6.027 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000193/0.5022, allocations: 35.67 kB / 0.599 GB, free: 5.992 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.5022, allocations: 24 kB / 0.599 GB, free: 5.969 MB / 418.8 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.0001543/0.5024, allocations: 152.8 kB / 0.5992 GB, free: 5.812 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.102e-05/0.5024, allocations: 39.55 kB / 0.5992 GB, free: 5.773 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.25e-05/0.5025, allocations: 26.78 kB / 0.5992 GB, free: 5.75 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.5025, allocations: 4 kB / 0.5992 GB, free: 5.746 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.5025, allocations: 3.984 kB / 0.5992 GB, free: 5.742 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.5025, allocations: 0 / 0.5992 GB, free: 5.742 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.5038, allocations: 0.7489 MB / 0.6 GB, free: 4.945 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.5038, allocations: 4 kB / 0.6 GB, free: 4.941 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.79e-05/0.5039, allocations: 15.92 kB / 0.6 GB, free: 4.926 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.5039, allocations: 7.906 kB / 0.6 GB, free: 4.918 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/0.5039, allocations: 11.98 kB / 0.6 GB, free: 4.906 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.5039, allocations: 0 / 0.6 GB, free: 4.906 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.5039, allocations: 0 / 0.6 GB, free: 4.906 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004939/0.5044, allocations: 423.6 kB / 0.6004 GB, free: 4.477 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.031e-05/0.5045, allocations: 104.8 kB / 0.6005 GB, free: 4.355 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7e-05/0.5046, allocations: 19.97 kB / 0.6005 GB, free: 4.336 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002616/0.5048, allocations: 35.97 kB / 0.6006 GB, free: 4.301 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.551e-05/0.5049, allocations: 23.97 kB / 0.6006 GB, free: 4.277 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/0.505, allocations: 11.98 kB / 0.6006 GB, free: 4.266 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.0001112/0.5051, allocations: 145.5 kB / 0.6007 GB, free: 4.125 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.0003812/0.5055, allocations: 63.83 kB / 0.6008 GB, free: 4.062 MB / 418.8 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.0001661/0.5056, allocations: 131.1 kB / 0.6009 GB, free: 3.922 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.0004811/0.5061, allocations: 299.6 kB / 0.6012 GB, free: 3.629 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5061, allocations: 0 / 0.6012 GB, free: 3.629 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002326/0.5064, allocations: 147.9 kB / 0.6013 GB, free: 3.484 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.5067, allocations: 33.53 kB / 0.6014 GB, free: 3.453 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.5077, allocations: 394.5 kB / 0.6017 GB, free: 3.051 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003888/0.5081, allocations: 0.7951 MB / 0.6025 GB, free: 2.227 MB / 418.8 MB Notification: Performance of SimCode: time 2.51e-07/0.5081, allocations: 0 / 0.6025 GB, free: 2.227 MB / 418.8 MB Notification: Performance of Templates: time 0.006348/0.5145, allocations: 2.977 MB / 0.6054 GB, free: 15.27 MB / 434.8 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches