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.001041/0.001041, allocations: 110.6 kB / 16.41 MB, free: 6.445 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.001173/0.001174, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.67/1.67, allocations: 205.1 MB / 223.2 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.2395/0.2395, allocations: 43.52 MB / 314.1 MB, free: 464 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.001853/0.001853, allocations: 63.89 kB / 441.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1684, allocations: 57.79 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002739/0.1712, allocations: 1.531 MB / 0.4894 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009113/0.1721, allocations: 0.5269 MB / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.083e-05/0.1722, allocations: 4 kB / 0.4899 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.819e-05/0.1722, allocations: 3.938 kB / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.034e-05/0.1723, allocations: 19.84 kB / 0.4899 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001895/0.1725, allocations: 31.89 kB / 0.4899 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.1727, allocations: 91.7 kB / 0.49 GB, free: 9.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.1728, allocations: 11.98 kB / 0.49 GB, free: 9.594 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.1729, allocations: 43.83 kB / 0.4901 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.339e-05/0.173, allocations: 39.84 kB / 0.4901 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.173, allocations: 12 kB / 0.4901 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.754e-05/0.173, allocations: 8 kB / 0.4901 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.531e-05/0.1731, allocations: 23.91 kB / 0.4902 GB, free: 9.469 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.633e-05/0.1731, allocations: 39.78 kB / 0.4902 GB, free: 9.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001327/0.1733, allocations: 71.72 kB / 0.4903 GB, free: 9.359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1733, allocations: 0 / 0.4903 GB, free: 9.359 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1733, allocations: 0 / 0.4903 GB, free: 9.359 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1733, allocations: 0 / 0.4903 GB, free: 9.359 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.000652/0.174, allocations: 403.2 kB / 0.4906 GB, free: 8.918 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.174, allocations: 15.83 kB / 0.4907 GB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.113e-05/0.1741, allocations: 8.891 kB / 0.4907 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.1742, allocations: 176.3 kB / 0.4908 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.1742, allocations: 4.375 kB / 0.4908 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.913e-05/0.1742, allocations: 8.375 kB / 0.4909 GB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/0.1744, allocations: 93.89 kB / 0.4909 GB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.1745, allocations: 0 / 0.4909 GB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.1745, allocations: 8 kB / 0.4909 GB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.1745, allocations: 4 kB / 0.491 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001241/0.1746, allocations: 51.89 kB / 0.491 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005565/0.1752, allocations: 320.7 kB / 0.4913 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.1754, allocations: 90.48 kB / 0.4914 GB, free: 8.051 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.465e-05/0.1755, allocations: 44.84 kB / 0.4914 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.1755, allocations: 4 kB / 0.4914 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/0.1757, allocations: 99.42 kB / 0.4915 GB, free: 7.891 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.1757, allocations: 0 / 0.4915 GB, free: 7.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004074/0.1761, allocations: 185.6 kB / 0.4917 GB, free: 7.703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.1761, allocations: 55.41 kB / 0.4918 GB, free: 7.637 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.259e-05/0.1762, allocations: 125.8 kB / 0.4919 GB, free: 7.504 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1763, allocations: 29.7 kB / 0.4919 GB, free: 7.469 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.806e-05/0.1763, allocations: 92.38 kB / 0.492 GB, free: 7.375 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.815e-05/0.1764, allocations: 39.67 kB / 0.492 GB, free: 7.336 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-05/0.1764, allocations: 37.7 kB / 0.4921 GB, free: 7.293 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1765, allocations: 326.8 kB / 0.4924 GB, free: 6.965 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.997e-05/0.1766, allocations: 31.98 kB / 0.4924 GB, free: 6.934 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.1768, allocations: 81.12 kB / 0.4925 GB, free: 6.836 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/0.177, allocations: 117.1 kB / 0.4926 GB, free: 6.703 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.177, allocations: 0 / 0.4926 GB, free: 6.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002606/0.1772, allocations: 157.6 kB / 0.4928 GB, free: 6.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.1773, allocations: 8 kB / 0.4928 GB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1773, allocations: 0 / 0.4928 GB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.1773, allocations: 7.984 kB / 0.4928 GB, free: 6.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.1774, allocations: 27.88 kB / 0.4928 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.1774, allocations: 4.156 kB / 0.4928 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.888e-05/0.1775, allocations: 15.88 kB / 0.4928 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.1775, allocations: 12 kB / 0.4928 GB, free: 6.469 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.0001722/0.1777, allocations: 128 kB / 0.493 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.728e-05/0.1777, allocations: 8.328 kB / 0.493 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.606e-05/0.1777, allocations: 16.48 kB / 0.493 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.1778, allocations: 7.938 kB / 0.493 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1778, allocations: 0 / 0.493 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1778, allocations: 3.938 kB / 0.493 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005098/0.1783, allocations: 442.4 kB / 0.4934 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.1783, allocations: 7.938 kB / 0.4934 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.63e-05/0.1784, allocations: 8 kB / 0.4934 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.1784, allocations: 3.984 kB / 0.4934 GB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.1784, allocations: 4 kB / 0.4934 GB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1784, allocations: 0 / 0.4934 GB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1784, allocations: 0 / 0.4934 GB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003066/0.1787, allocations: 255.4 kB / 0.4937 GB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.51e-05/0.1788, allocations: 92.94 kB / 0.4938 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.244e-05/0.1788, allocations: 0 / 0.4938 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.1789, allocations: 11.92 kB / 0.4938 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.838e-05/0.179, allocations: 19.97 kB / 0.4938 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.179, allocations: 4 kB / 0.4938 GB, free: 5.371 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.447e-05/0.1791, allocations: 91.27 kB / 0.4939 GB, free: 5.281 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1791, allocations: 4 kB / 0.4939 GB, free: 5.277 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002357/0.1793, allocations: 20 kB / 0.4939 GB, free: 5.258 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.0001071/0.1794, allocations: 103.2 kB / 0.494 GB, free: 5.148 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002526/0.1797, allocations: 108.7 kB / 0.4941 GB, free: 5.043 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1797, allocations: 0 / 0.4941 GB, free: 5.043 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.1798, allocations: 43.98 kB / 0.4942 GB, free: 5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002802/0.1801, allocations: 31.05 kB / 0.4942 GB, free: 4.973 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000439/0.1805, allocations: 211.4 kB / 0.4944 GB, free: 4.734 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.1808, allocations: 0.6924 MB / 0.4951 GB, free: 4.016 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.801e-05/0.1809, allocations: 8.875 kB / 0.4951 GB, free: 4.008 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.012e-05/0.1809, allocations: 15.44 kB / 0.4951 GB, free: 3.992 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1809, allocations: 0 / 0.4951 GB, free: 3.992 MB / 382.1 MB Notification: Performance of Templates: time 0.003535/0.1845, allocations: 1.011 MB / 0.4961 GB, free: 2.984 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches