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.005984/0.005984, allocations: 100.8 kB / 15.87 MB, free: 6.316 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.001228/0.001228, allocations: 192.8 kB / 16.79 MB, free: 6.242 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.719/1.719, allocations: 205.1 MB / 222.7 MB, free: 4.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.378/0.378, allocations: 43.5 MB / 313.5 MB, free: 8.449 MB / 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.002194/0.002194, allocations: 70.55 kB / 382 MB, free: 8.742 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1805, allocations: 57.79 MB / 439.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00359/0.1842, allocations: 1.583 MB / 441.4 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009797/0.1852, allocations: 0.5192 MB / 441.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.378e-05/0.1853, allocations: 3.938 kB / 441.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.345e-05/0.1853, allocations: 0 / 441.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.1854, allocations: 11.86 kB / 441.9 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.1857, allocations: 39.89 kB / 442 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001194/0.1858, allocations: 83.77 kB / 442.1 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.186, allocations: 11.98 kB / 442.1 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.1861, allocations: 39.78 kB / 442.1 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.141e-05/0.1862, allocations: 43.83 kB / 442.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.1862, allocations: 4 kB / 442.2 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.889e-05/0.1862, allocations: 4 kB / 442.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.525e-05/0.1863, allocations: 15.98 kB / 442.2 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.433e-05/0.1863, allocations: 35.78 kB / 442.2 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000133/0.1865, allocations: 75.98 kB / 442.3 MB, free: 12.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.1865, allocations: 0 / 442.3 MB, free: 12.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1865, allocations: 0 / 442.3 MB, free: 12.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1865, allocations: 0 / 442.3 MB, free: 12.37 MB / 382.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.0006675/0.1872, allocations: 395.2 kB / 442.7 MB, free: 11.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.1872, allocations: 12.03 kB / 442.7 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.901e-05/0.1873, allocations: 12.83 kB / 442.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.1874, allocations: 176.2 kB / 442.9 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.1874, allocations: 16.3 kB / 442.9 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/0.1875, allocations: 4.375 kB / 442.9 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.1877, allocations: 89.95 kB / 443 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.1877, allocations: 7.938 kB / 443 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.1877, allocations: 0 / 443 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1877, allocations: 0 / 443 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.1878, allocations: 47.97 kB / 443 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000624/0.1885, allocations: 328.7 kB / 443.3 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002042/0.1887, allocations: 90.55 kB / 443.4 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.371e-05/0.1888, allocations: 44.83 kB / 443.5 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.1888, allocations: 4 kB / 443.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002788/0.1891, allocations: 103.4 kB / 443.6 MB, free: 10.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.1891, allocations: 0 / 443.6 MB, free: 10.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004888/0.1896, allocations: 181.5 kB / 443.8 MB, free: 10.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/0.1897, allocations: 63.52 kB / 443.8 MB, free: 10.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.1898, allocations: 117.8 kB / 443.9 MB, free: 10.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.1898, allocations: 33.7 kB / 444 MB, free: 10.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.468e-05/0.1899, allocations: 92.41 kB / 444.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.654e-05/0.19, allocations: 31.56 kB / 444.1 MB, free: 10.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.787e-05/0.19, allocations: 37.7 kB / 444.1 MB, free: 10.31 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002522/0.1903, allocations: 326.8 kB / 444.4 MB, free: 9.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.006e-05/0.1904, allocations: 35.98 kB / 444.5 MB, free: 9.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.1905, allocations: 73.12 kB / 444.6 MB, free: 9.855 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002136/0.1907, allocations: 133.2 kB / 444.7 MB, free: 9.707 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1907, allocations: 3.938 kB / 444.7 MB, free: 9.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002622/0.191, allocations: 153.4 kB / 444.8 MB, free: 9.547 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.191, allocations: 8 kB / 444.8 MB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1911, allocations: 0 / 444.8 MB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.1911, allocations: 4.156 kB / 444.8 MB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.1912, allocations: 31.86 kB / 444.9 MB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.537e-06/0.1912, allocations: 0 / 444.9 MB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.424e-05/0.1913, allocations: 15.84 kB / 444.9 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.1913, allocations: 8.375 kB / 444.9 MB, free: 9.48 MB / 382.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 0.0001373/0.1915, allocations: 128.1 kB / 445 MB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.1915, allocations: 7.906 kB / 445 MB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.92e-05/0.1915, allocations: 8.5 kB / 445 MB, free: 9.336 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.1916, allocations: 11.88 kB / 445.1 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.1916, allocations: 4 kB / 445.1 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1916, allocations: 7.922 kB / 445.1 MB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005861/0.1922, allocations: 426.5 kB / 445.5 MB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1922, allocations: 7.875 kB / 445.5 MB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.477e-05/0.1923, allocations: 19.92 kB / 445.5 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1923, allocations: 0 / 445.5 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.1923, allocations: 4 kB / 445.5 MB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1923, allocations: 0 / 445.5 MB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1923, allocations: 4 kB / 445.5 MB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003229/0.1926, allocations: 247.4 kB / 445.8 MB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.345e-05/0.1927, allocations: 96.88 kB / 445.9 MB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.1927, allocations: 4 kB / 445.9 MB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.834e-05/0.1928, allocations: 4 kB / 445.9 MB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.891e-05/0.1929, allocations: 11.98 kB / 445.9 MB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/0.1929, allocations: 7.984 kB / 445.9 MB, free: 8.406 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.37e-05/0.193, allocations: 95.28 kB / 446 MB, free: 8.312 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.193, allocations: 0 / 446 MB, free: 8.312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000248/0.1933, allocations: 19.98 kB / 446 MB, free: 8.293 MB / 382.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.0001397/0.1934, allocations: 115.2 kB / 446.1 MB, free: 8.168 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002672/0.1937, allocations: 107.8 kB / 446.2 MB, free: 8.062 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1937, allocations: 0 / 446.2 MB, free: 8.062 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001119/0.1938, allocations: 52.23 kB / 446.3 MB, free: 8.012 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.1941, allocations: 19.92 kB / 446.3 MB, free: 7.992 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004602/0.1946, allocations: 222.1 kB / 446.5 MB, free: 7.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.1948, allocations: 0.6965 MB / 447.2 MB, free: 7.027 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.952e-05/0.1949, allocations: 8.891 kB / 447.2 MB, free: 7.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.981e-05/0.1949, allocations: 19.42 kB / 447.2 MB, free: 7 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1949, allocations: 0 / 447.2 MB, free: 7 MB / 382.1 MB Notification: Performance of Templates: time 0.003795/0.1987, allocations: 0.9142 MB / 448.1 MB, free: 6.086 MB / 382.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches