Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.conf.json 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/Complex 4.0.0+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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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_3.2.3_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_3.2.3_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 112.6 kB / 17.04 MB, free: 6.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 195 kB / 17.97 MB, free: 5.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 205.1 MB / 223.8 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2335/0.2335, allocations: 43.51 MB / 314.7 MB, free: 488 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002253/0.002253, allocations: 71.44 kB / 384.2 MB, free: 56.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1878, allocations: 57.79 MB / 442 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002441/0.1903, allocations: 1.517 MB / 443.5 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006763/0.191, allocations: 0.5291 MB / 444 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.484e-05/0.191, allocations: 4 kB / 444 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.678e-05/0.191, allocations: 3.938 kB / 444 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.557e-05/0.1911, allocations: 7.875 kB / 444 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001761/0.1913, allocations: 47.88 kB / 444.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.743e-05/0.1914, allocations: 87.7 kB / 444.2 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.65e-05/0.1915, allocations: 11.98 kB / 444.2 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.793e-05/0.1916, allocations: 35.86 kB / 444.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7e-05/0.1917, allocations: 43.83 kB / 444.2 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.955e-05/0.1917, allocations: 12 kB / 444.3 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.332e-05/0.1917, allocations: 4 kB / 444.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.781e-05/0.1918, allocations: 27.84 kB / 444.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.723e-05/0.1918, allocations: 39.8 kB / 444.3 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.1919, allocations: 75.64 kB / 444.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1919, allocations: 0 / 444.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.192, allocations: 4 kB / 444.4 MB, free: 3.707 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.192, allocations: 0 / 444.4 MB, free: 3.707 MB / 318.1 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.0005515/0.1925, allocations: 399.2 kB / 444.8 MB, free: 3.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.1926, allocations: 15.89 kB / 444.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.437e-05/0.1926, allocations: 8.844 kB / 444.8 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.975e-05/0.1927, allocations: 180.2 kB / 445 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.1927, allocations: 4.375 kB / 445 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.998e-05/0.1928, allocations: 12.36 kB / 445 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001633/0.1929, allocations: 85.91 kB / 445.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1929, allocations: 0 / 445.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.193, allocations: 11.98 kB / 445.1 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.193, allocations: 0 / 445.1 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/0.1931, allocations: 39.98 kB / 445.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004623/0.1935, allocations: 324.7 kB / 445.5 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.1937, allocations: 86.55 kB / 445.5 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.655e-05/0.1938, allocations: 52.77 kB / 445.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.1938, allocations: 4 kB / 445.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.194, allocations: 95.48 kB / 445.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.194, allocations: 0 / 445.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003765/0.1944, allocations: 185.2 kB / 445.9 MB, free: 2.066 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.1945, allocations: 59.39 kB / 445.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.158e-05/0.1945, allocations: 125.7 kB / 446.1 MB, free: 1.863 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.1945, allocations: 33.7 kB / 446.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.01e-05/0.1946, allocations: 96.34 kB / 446.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.811e-05/0.1946, allocations: 31.98 kB / 446.2 MB, free: 1.695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-05/0.1947, allocations: 37.7 kB / 446.3 MB, free: 1.652 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.158e-05/0.1947, allocations: 326.8 kB / 446.6 MB, free: 1.324 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.892e-05/0.1948, allocations: 35.97 kB / 446.6 MB, free: 1.289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.06e-05/0.1949, allocations: 81.08 kB / 446.7 MB, free: 1.191 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.195, allocations: 125 kB / 446.8 MB, free: 1.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.195, allocations: 0 / 446.8 MB, free: 1.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002041/0.1952, allocations: 157.6 kB / 447 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1953, allocations: 8 kB / 447 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1953, allocations: 3.984 kB / 447 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.1953, allocations: 4 kB / 447 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.64e-05/0.1954, allocations: 23.86 kB / 447 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.1954, allocations: 8.156 kB / 447 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.501e-05/0.1955, allocations: 15.84 kB / 447 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.1955, allocations: 4 kB / 447 MB, free: 0.8242 MB / 318.1 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 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.242e-05/0.1956, allocations: 140 kB / 447.2 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.492e-05/0.1956, allocations: 7.906 kB / 447.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.163e-05/0.1956, allocations: 8.5 kB / 447.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.1956, allocations: 3.938 kB / 447.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1956, allocations: 4 kB / 447.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.1957, allocations: 0 / 447.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003756/0.196, allocations: 446.4 kB / 447.6 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.196, allocations: 7.922 kB / 447.6 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.636e-05/0.1961, allocations: 8 kB / 447.6 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1961, allocations: 0 / 447.6 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.1961, allocations: 0 / 447.6 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.1961, allocations: 8 kB / 447.6 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1961, allocations: 7.922 kB / 447.7 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002861/0.1964, allocations: 251.4 kB / 447.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.015e-05/0.1965, allocations: 92.94 kB / 448 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.1965, allocations: 4 kB / 448 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.1966, allocations: 7.984 kB / 448 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.178e-05/0.1967, allocations: 8 kB / 448 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.1967, allocations: 7.984 kB / 448 MB, free: 15.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.112e-05/0.1967, allocations: 91.27 kB / 448.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1967, allocations: 4 kB / 448.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002358/0.197, allocations: 24 kB / 448.1 MB, free: 15.61 MB / 334.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001174/0.1971, allocations: 95.53 kB / 448.2 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002505/0.1974, allocations: 107.8 kB / 448.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1974, allocations: 0 / 448.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.1975, allocations: 51.97 kB / 448.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.1978, allocations: 24.19 kB / 448.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004125/0.1982, allocations: 199.5 kB / 448.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.1985, allocations: 0.6924 MB / 449.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.569e-05/0.1985, allocations: 8.875 kB / 449.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.379e-05/0.1986, allocations: 23.42 kB / 449.3 MB, free: 14.35 MB / 334.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1986, allocations: 0 / 449.3 MB, free: 14.35 MB / 334.1 MB Notification: Performance of Templates: time 0.003239/0.2018, allocations: 0.9912 MB / 450.3 MB, free: 13.37 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches