Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 225.6 MB / 234.8 MB, free: 3.188 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008807/0.0008807, allocations: 106.4 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2006/0.2006, allocations: 45.15 MB / 383.7 MB, free: 216 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.42e-05/1.429e-05, allocations: 4 kB / 453.2 MB, free: 75.81 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 63.25 MB / 0.5044 GB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3936/0.506, allocations: 87.12 MB / 0.5894 GB, free: 15.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.5062, allocations: 63.72 kB / 0.5895 GB, free: 15.4 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004474/0.5107, allocations: 1.626 MB / 0.5911 GB, free: 14.01 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5107, allocations: 0 / 0.5911 GB, free: 14.01 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.5108, allocations: 0 / 0.5911 GB, free: 14.01 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004774/0.5112, allocations: 393.6 kB / 0.5915 GB, free: 13.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.5113, allocations: 8.031 kB / 0.5915 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.5114, allocations: 23.89 kB / 0.5915 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.5116, allocations: 167 kB / 0.5916 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.5117, allocations: 0 / 0.5916 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.941e-05/0.5117, allocations: 10.73 kB / 0.5917 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001143/0.5118, allocations: 30.61 kB / 0.5917 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001616/0.512, allocations: 74.8 kB / 0.5918 GB, free: 13.26 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.512, allocations: 4 kB / 0.5918 GB, free: 13.26 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.512, allocations: 0 / 0.5918 GB, free: 13.26 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.512, allocations: 0 / 0.5918 GB, free: 13.26 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006264/0.5127, allocations: 307.6 kB / 0.5921 GB, free: 12.94 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.5128, allocations: 76.08 kB / 0.5921 GB, free: 12.88 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.935e-05/0.5129, allocations: 35.36 kB / 0.5922 GB, free: 12.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.5129, allocations: 7.984 kB / 0.5922 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001749/0.5131, allocations: 84.08 kB / 0.5922 GB, free: 12.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.512e-06/0.5131, allocations: 4 kB / 0.5923 GB, free: 12.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003249/0.5135, allocations: 134.4 kB / 0.5924 GB, free: 12.65 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.5135, allocations: 55.41 kB / 0.5924 GB, free: 12.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.566e-05/0.5136, allocations: 107.2 kB / 0.5925 GB, free: 12.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.659e-05/0.5137, allocations: 33.33 kB / 0.5926 GB, free: 12.44 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.296e-05/0.5138, allocations: 83.3 kB / 0.5926 GB, free: 12.36 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.22e-05/0.5138, allocations: 34.7 kB / 0.5927 GB, free: 12.33 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.436e-06/0.5138, allocations: 0 / 0.5927 GB, free: 12.33 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.514, allocations: 326 kB / 0.593 GB, free: 12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.996e-05/0.514, allocations: 26.38 kB / 0.593 GB, free: 11.99 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.5142, allocations: 74.27 kB / 0.5931 GB, free: 11.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.623e-05/0.5142, allocations: 37.61 kB / 0.5931 GB, free: 11.89 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.5143, allocations: 384 / 0.5931 GB, free: 11.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001966/0.5145, allocations: 125.2 kB / 0.5932 GB, free: 11.78 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.5145, allocations: 8.156 kB / 0.5933 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.5145, allocations: 4 kB / 0.5933 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/0.5145, allocations: 11.88 kB / 0.5933 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.5147, allocations: 19.98 kB / 0.5933 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.5147, allocations: 0 / 0.5933 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.418e-05/0.5147, allocations: 8.812 kB / 0.5933 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.5148, allocations: 11.94 kB / 0.5933 GB, free: 11.71 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,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 (21): * Single equations (assignments): 21 * 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.0001121/0.5149, allocations: 128.7 kB / 0.5934 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.5149, allocations: 11.91 kB / 0.5934 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.262e-05/0.515, allocations: 8.125 kB / 0.5934 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.515, allocations: 4 kB / 0.5935 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.515, allocations: 0 / 0.5935 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.515, allocations: 0 / 0.5935 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004667/0.5155, allocations: 404.9 kB / 0.5938 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.5155, allocations: 4 kB / 0.5938 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.512e-05/0.5155, allocations: 7.984 kB / 0.5938 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.5156, allocations: 8 kB / 0.5939 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.5156, allocations: 0 / 0.5939 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.5156, allocations: 0 / 0.5939 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5156, allocations: 0 / 0.5939 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000257/0.5158, allocations: 239.2 kB / 0.5941 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.837e-05/0.5159, allocations: 88.95 kB / 0.5942 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.5159, allocations: 3.984 kB / 0.5942 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.5161, allocations: 12 kB / 0.5942 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.5161, allocations: 11.11 kB / 0.5942 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.5161, allocations: 4 kB / 0.5942 GB, free: 10.79 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.632e-05/0.5162, allocations: 90.45 kB / 0.5943 GB, free: 10.71 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5162, allocations: 0 / 0.5943 GB, free: 10.71 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002426/0.5164, allocations: 18.62 kB / 0.5943 GB, free: 10.69 MB / 394.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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001531/0.5166, allocations: 99.2 kB / 0.5944 GB, free: 10.59 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001744/0.5168, allocations: 90.98 kB / 0.5945 GB, free: 10.52 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.5168, allocations: 4.062 kB / 0.5945 GB, free: 10.52 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.457e-05/0.5169, allocations: 38.53 kB / 0.5945 GB, free: 10.49 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001975/0.5171, allocations: 15.42 kB / 0.5945 GB, free: 10.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000353/0.5174, allocations: 122.5 kB / 0.5947 GB, free: 10.34 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.5178, allocations: 0.7002 MB / 0.5953 GB, free: 9.617 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.126e-05/0.5178, allocations: 8.891 kB / 0.5953 GB, free: 9.609 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.074e-05/0.5179, allocations: 19.42 kB / 0.5954 GB, free: 9.59 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5179, allocations: 0 / 0.5954 GB, free: 9.59 MB / 394.7 MB Notification: Performance of Templates: time 0.00292/0.5208, allocations: 0.8333 MB / 0.5962 GB, free: 8.773 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches