Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.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.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_4.0.0_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_4.0.0_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 179.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 221.4 MB / 236 MB, free: 2.949 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.0008591/0.000859, allocations: 91.8 kB / 287 MB, free: 236 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2151/0.2151, allocations: 44.16 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.891e-05/3.917e-05, allocations: 224 / 451.8 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.135, allocations: 61.91 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.359/0.4941, allocations: 86.72 MB / 0.5864 GB, free: 2.594 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001637/0.4943, allocations: 63.97 kB / 0.5864 GB, free: 2.531 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00397/0.4983, allocations: 1.526 MB / 0.5879 GB, free: 1.012 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4983, allocations: 4 kB / 0.5879 GB, free: 1.008 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.4983, allocations: 4 kB / 0.5879 GB, free: 1.004 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.0004076/0.4987, allocations: 382.2 kB / 0.5883 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.4988, allocations: 8.031 kB / 0.5883 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.481e-05/0.4988, allocations: 7.906 kB / 0.5883 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.4989, allocations: 175 kB / 0.5885 GB, free: 368 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.4989, allocations: 8 kB / 0.5885 GB, free: 360 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.499, allocations: 15.94 kB / 0.5885 GB, free: 344 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/0.4991, allocations: 77.8 kB / 0.5886 GB, free: 260 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.4991, allocations: 0 / 0.5886 GB, free: 260 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.4991, allocations: 3.984 kB / 0.5886 GB, free: 256 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.4992, allocations: 0 / 0.5886 GB, free: 256 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.589e-05/0.4992, allocations: 38.95 kB / 0.5886 GB, free: 220 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004702/0.4997, allocations: 328.7 kB / 0.5889 GB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.4999, allocations: 86.5 kB / 0.589 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.165e-05/0.4999, allocations: 40.84 kB / 0.5891 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.5, allocations: 0 / 0.5891 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001401/0.5001, allocations: 99.5 kB / 0.5892 GB, free: 15.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.5001, allocations: 0 / 0.5892 GB, free: 15.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002694/0.5004, allocations: 134.1 kB / 0.5893 GB, free: 15.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.5004, allocations: 67.31 kB / 0.5893 GB, free: 15.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.997e-05/0.5005, allocations: 105.2 kB / 0.5894 GB, free: 15.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.5005, allocations: 33.7 kB / 0.5895 GB, free: 15.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.995e-05/0.5006, allocations: 92.41 kB / 0.5896 GB, free: 15.13 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.215e-05/0.5006, allocations: 35.55 kB / 0.5896 GB, free: 15.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-06/0.5006, allocations: 0 / 0.5896 GB, free: 15.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.577e-05/0.5007, allocations: 330.8 kB / 0.5899 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.206e-05/0.5008, allocations: 32.36 kB / 0.5899 GB, free: 14.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.329e-05/0.5009, allocations: 68.91 kB / 0.59 GB, free: 14.65 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.617e-05/0.5009, allocations: 43.81 kB / 0.5901 GB, free: 14.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.5009, allocations: 0 / 0.5901 GB, free: 14.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001967/0.5011, allocations: 152 kB / 0.5902 GB, free: 14.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.5012, allocations: 8 kB / 0.5902 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.5012, allocations: 0.875 kB / 0.5902 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.5012, allocations: 4 kB / 0.5902 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.5013, allocations: 24.08 kB / 0.5902 GB, free: 14.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.5013, allocations: 4 kB / 0.5902 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.65e-05/0.5014, allocations: 12 kB / 0.5902 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.5014, allocations: 4 kB / 0.5903 GB, free: 14.41 MB / 410.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 7.425e-05/0.5015, allocations: 119.1 kB / 0.5904 GB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.676e-05/0.5015, allocations: 11.91 kB / 0.5904 GB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.102e-05/0.5015, allocations: 16.95 kB / 0.5904 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.5016, allocations: 4 kB / 0.5904 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.5016, allocations: 3.938 kB / 0.5904 GB, free: 14.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.5016, allocations: 8 kB / 0.5904 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003976/0.502, allocations: 435 kB / 0.5908 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.502, allocations: 0 / 0.5908 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.604e-05/0.502, allocations: 11.98 kB / 0.5908 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.5021, allocations: 0 / 0.5908 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.5021, allocations: 4.375 kB / 0.5908 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.5021, allocations: 0 / 0.5908 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.5021, allocations: 0 / 0.5908 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002251/0.5023, allocations: 250.9 kB / 0.5911 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.5024, allocations: 92.94 kB / 0.5912 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.5024, allocations: 4 kB / 0.5912 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.5025, allocations: 11.98 kB / 0.5912 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.779e-05/0.5025, allocations: 11.98 kB / 0.5912 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.5026, allocations: 4 kB / 0.5912 GB, free: 13.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.998e-05/0.5026, allocations: 91.28 kB / 0.5913 GB, free: 13.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5026, allocations: 0 / 0.5913 GB, free: 13.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002108/0.5028, allocations: 24 kB / 0.5913 GB, free: 13.23 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: 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 9.754e-05/0.5029, allocations: 103.8 kB / 0.5914 GB, free: 13.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001599/0.5031, allocations: 95.88 kB / 0.5915 GB, free: 13.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.5031, allocations: 0 / 0.5915 GB, free: 13.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.415e-05/0.5032, allocations: 43.98 kB / 0.5915 GB, free: 12.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001632/0.5034, allocations: 21.61 kB / 0.5916 GB, free: 12.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002882/0.5036, allocations: 130.1 kB / 0.5917 GB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.5039, allocations: 0.6926 MB / 0.5924 GB, free: 12.09 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.867e-05/0.5039, allocations: 12.88 kB / 0.5924 GB, free: 12.08 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.513e-05/0.5039, allocations: 15.44 kB / 0.5924 GB, free: 12.06 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.504, allocations: 0 / 0.5924 GB, free: 12.06 MB / 410.7 MB Notification: Performance of Templates: time 0.002562/0.5065, allocations: 0.8753 MB / 0.5932 GB, free: 11.2 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches