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.0009789/0.0009788, allocations: 102.8 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008847/0.0008846, allocations: 186.5 kB / 16.92 MB, free: 6.918 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.992/1.992, allocations: 205.4 MB / 223.1 MB, free: 5.52 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.5572/0.5572, allocations: 43.57 MB / 315 MB, free: 8.758 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.0005747/0.0005748, allocations: 12 kB / 384.6 MB, free: 7.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1816, allocations: 58.87 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002181/0.1839, allocations: 1.244 MB / 444.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009678/0.1849, allocations: 0.5153 MB / 445.2 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.173e-05/0.1849, allocations: 0 / 445.2 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.534e-05/0.185, allocations: 7.938 kB / 445.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.1851, allocations: 7.922 kB / 445.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.1853, allocations: 35.91 kB / 445.2 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.1855, allocations: 91.69 kB / 445.3 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.1856, allocations: 7.984 kB / 445.3 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.1857, allocations: 31.92 kB / 445.4 MB, free: 10.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.499e-05/0.1859, allocations: 39.81 kB / 445.4 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.1859, allocations: 4 kB / 445.4 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.722e-05/0.1859, allocations: 8 kB / 445.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.876e-05/0.186, allocations: 15.92 kB / 445.4 MB, free: 10.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.121e-05/0.186, allocations: 65.44 kB / 445.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.1862, allocations: 67.98 kB / 445.6 MB, free: 10.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1862, allocations: 0 / 445.6 MB, free: 10.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1862, allocations: 0 / 445.6 MB, free: 10.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1862, allocations: 0 / 445.6 MB, free: 10.52 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.0006959/0.1869, allocations: 391.3 kB / 446 MB, free: 10.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/0.187, allocations: 8.031 kB / 446 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.325e-05/0.187, allocations: 12.84 kB / 446 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.1872, allocations: 180.2 kB / 446.2 MB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.1872, allocations: 8.297 kB / 446.2 MB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.33e-05/0.1873, allocations: 12.38 kB / 446.2 MB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/0.1875, allocations: 101.9 kB / 446.3 MB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1875, allocations: 0 / 446.3 MB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.1875, allocations: 0 / 446.3 MB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.1875, allocations: 8 kB / 446.3 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001318/0.1877, allocations: 47.97 kB / 446.3 MB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005791/0.1883, allocations: 328.7 kB / 446.6 MB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001918/0.1885, allocations: 90.55 kB / 446.7 MB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.803e-05/0.1886, allocations: 44.78 kB / 446.8 MB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.1886, allocations: 4 kB / 446.8 MB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002224/0.1888, allocations: 99.36 kB / 446.9 MB, free: 9.047 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.694e-06/0.1889, allocations: 0 / 446.9 MB, free: 9.047 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004532/0.1893, allocations: 189.5 kB / 447.1 MB, free: 8.855 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.1894, allocations: 63.59 kB / 447.1 MB, free: 8.781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.1895, allocations: 121.7 kB / 447.2 MB, free: 8.652 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.1895, allocations: 37.7 kB / 447.3 MB, free: 8.609 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.544e-05/0.1896, allocations: 88.42 kB / 447.4 MB, free: 8.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.088e-05/0.1897, allocations: 35.55 kB / 447.4 MB, free: 8.484 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.302e-05/0.1897, allocations: 25.7 kB / 447.4 MB, free: 8.453 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1898, allocations: 326.8 kB / 447.7 MB, free: 8.125 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.113e-05/0.1899, allocations: 31.98 kB / 447.8 MB, free: 8.094 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.1901, allocations: 85.12 kB / 447.9 MB, free: 7.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.1903, allocations: 121.1 kB / 448 MB, free: 7.855 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1903, allocations: 0 / 448 MB, free: 7.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002653/0.1906, allocations: 165.3 kB / 448.1 MB, free: 7.688 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.1906, allocations: 8 kB / 448.1 MB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.1906, allocations: 3.984 kB / 448.2 MB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.1906, allocations: 8.156 kB / 448.2 MB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.1907, allocations: 19.94 kB / 448.2 MB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.1908, allocations: 7.922 kB / 448.2 MB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.046e-05/0.1908, allocations: 15.94 kB / 448.2 MB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.1908, allocations: 4.375 kB / 448.2 MB, free: 7.621 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.00011/0.191, allocations: 128 kB / 448.3 MB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.191, allocations: 7.906 kB / 448.3 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.993e-05/0.191, allocations: 12.48 kB / 448.4 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.191, allocations: 11.94 kB / 448.4 MB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.191, allocations: 3.938 kB / 448.4 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.191, allocations: 0 / 448.4 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000512/0.1916, allocations: 454.5 kB / 448.8 MB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1916, allocations: 0 / 448.8 MB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.176e-05/0.1916, allocations: 11.92 kB / 448.8 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1916, allocations: 4 kB / 448.8 MB, free: 6.941 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.1917, allocations: 4 kB / 448.8 MB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1917, allocations: 0 / 448.8 MB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1917, allocations: 0 / 448.8 MB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003096/0.192, allocations: 255.3 kB / 449.1 MB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.596e-05/0.1921, allocations: 92.89 kB / 449.2 MB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.1921, allocations: 8 kB / 449.2 MB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.753e-05/0.1922, allocations: 11.98 kB / 449.2 MB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.1922, allocations: 7.984 kB / 449.2 MB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/0.1923, allocations: 8 kB / 449.2 MB, free: 6.527 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.359e-05/0.1923, allocations: 91.27 kB / 449.3 MB, free: 6.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1923, allocations: 4 kB / 449.3 MB, free: 6.434 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002328/0.1926, allocations: 20 kB / 449.3 MB, free: 6.414 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.00013/0.1927, allocations: 111.1 kB / 449.4 MB, free: 6.293 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002452/0.193, allocations: 116.5 kB / 449.5 MB, free: 6.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.193, allocations: 0 / 449.5 MB, free: 6.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.1931, allocations: 51.98 kB / 449.6 MB, free: 6.129 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.1934, allocations: 15.92 kB / 449.6 MB, free: 6.113 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004637/0.1938, allocations: 229.7 kB / 449.8 MB, free: 5.855 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.1942, allocations: 0.6926 MB / 450.5 MB, free: 5.137 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.218e-05/0.1942, allocations: 12.88 kB / 450.5 MB, free: 5.125 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.446e-05/0.1943, allocations: 15.44 kB / 450.6 MB, free: 5.113 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1943, allocations: 0 / 450.6 MB, free: 5.113 MB / 382.1 MB Notification: Performance of Templates: time 0.00352/0.1978, allocations: 0.9026 MB / 451.5 MB, free: 4.219 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