Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002766/0.002765, allocations: 186.8 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.824/3.824, allocations: 205.4 MB / 222.6 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001801/0.001801, allocations: 90.88 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1714/0.1715, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009938/0.0009943, allocations: 12.19 kB / 392 MB, free: 54.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1847/0.1858, allocations: 50.37 MB / 442.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003862/0.1898, allocations: 1.191 MB / 443.5 MB, free: 10.4 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008496/0.1907, allocations: 139.7 kB / 443.7 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.1909, allocations: 0 / 443.7 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.795e-05/0.191, allocations: 0 / 443.7 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001532/0.1912, allocations: 15.98 kB / 443.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004396/0.1917, allocations: 27.91 kB / 443.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001223/0.1918, allocations: 19.92 kB / 443.7 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.192, allocations: 7.984 kB / 443.7 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.206e-05/0.1921, allocations: 8 kB / 443.8 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.14e-05/0.1921, allocations: 11.92 kB / 443.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.1922, allocations: 0 / 443.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.244e-05/0.1922, allocations: 0 / 443.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.852e-05/0.1923, allocations: 15.92 kB / 443.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.438e-05/0.1923, allocations: 37.64 kB / 443.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001065/0.1925, allocations: 27.91 kB / 443.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1925, allocations: 0 / 443.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1925, allocations: 0 / 443.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1925, allocations: 0 / 443.8 MB, free: 10.09 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006007/0.1931, allocations: 352 kB / 444.2 MB, free: 9.699 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.814e-05/0.1932, allocations: 12.03 kB / 444.2 MB, free: 9.688 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.386e-05/0.1933, allocations: 3.906 kB / 444.2 MB, free: 9.684 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.1937, allocations: 190.9 kB / 444.4 MB, free: 9.457 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.1937, allocations: 11.98 kB / 444.4 MB, free: 9.445 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.1938, allocations: 3.953 kB / 444.4 MB, free: 9.441 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004497/0.1943, allocations: 93.05 kB / 444.5 MB, free: 9.332 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.1943, allocations: 0 / 444.5 MB, free: 9.332 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.1943, allocations: 0 / 444.5 MB, free: 9.332 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.1944, allocations: 4 kB / 444.5 MB, free: 9.328 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/0.1946, allocations: 19.92 kB / 444.5 MB, free: 9.309 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.1951, allocations: 257.8 kB / 444.8 MB, free: 9.004 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.1954, allocations: 49.14 kB / 444.8 MB, free: 8.938 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.509e-05/0.1954, allocations: 0 / 444.8 MB, free: 8.938 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.1955, allocations: 38.62 kB / 444.9 MB, free: 8.891 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 2.935e-06/0.1955, allocations: 0 / 444.9 MB, free: 8.891 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0004865/0.196, allocations: 73.7 kB / 444.9 MB, free: 8.812 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.505e-05/0.1961, allocations: 81.05 kB / 445 MB, free: 8.715 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.1963, allocations: 138 kB / 445.1 MB, free: 8.566 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.1964, allocations: 25.7 kB / 445.2 MB, free: 8.535 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.639e-05/0.1964, allocations: 154.5 kB / 445.3 MB, free: 8.383 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.495e-05/0.1965, allocations: 0 / 445.3 MB, free: 8.383 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.1965, allocations: 0 / 445.3 MB, free: 8.383 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.383e-05/0.1966, allocations: 318.9 kB / 445.6 MB, free: 8.062 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.1967, allocations: 11.98 kB / 445.6 MB, free: 8.051 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.752e-05/0.1968, allocations: 17.72 kB / 445.7 MB, free: 8.027 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.798e-05/0.1969, allocations: 23.88 kB / 445.7 MB, free: 8.004 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1969, allocations: 64 / 445.7 MB, free: 8.004 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003448/0.1973, allocations: 53.59 kB / 445.7 MB, free: 7.945 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.1974, allocations: 4 kB / 445.7 MB, free: 7.941 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.1974, allocations: 4 kB / 445.7 MB, free: 7.938 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/0.1974, allocations: 0 / 445.7 MB, free: 7.938 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.1976, allocations: 4 kB / 445.7 MB, free: 7.934 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.1976, allocations: 3.938 kB / 445.8 MB, free: 7.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.629e-05/0.1977, allocations: 12.05 kB / 445.8 MB, free: 7.918 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.1977, allocations: 0 / 445.8 MB, free: 7.918 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 0.0001379/0.1979, allocations: 125.6 kB / 445.9 MB, free: 7.785 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.198, allocations: 37.69 kB / 445.9 MB, free: 7.742 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.932e-05/0.1981, allocations: 11.83 kB / 445.9 MB, free: 7.73 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1981, allocations: 0 / 445.9 MB, free: 7.73 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.1982, allocations: 0 / 445.9 MB, free: 7.73 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1982, allocations: 0 / 445.9 MB, free: 7.73 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002828/0.1985, allocations: 173.7 kB / 446.1 MB, free: 7.512 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.1985, allocations: 7.984 kB / 446.1 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.1986, allocations: 4 kB / 446.1 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.1987, allocations: 0 / 446.1 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.1987, allocations: 0 / 446.1 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.1987, allocations: 4 kB / 446.1 MB, free: 7.496 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.1987, allocations: 7.922 kB / 446.1 MB, free: 7.488 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003264/0.1991, allocations: 178 kB / 446.3 MB, free: 7.289 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.914e-05/0.1992, allocations: 89 kB / 446.4 MB, free: 7.184 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.644e-05/0.1992, allocations: 0 / 446.4 MB, free: 7.184 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.1994, allocations: 4 kB / 446.4 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.359e-05/0.1995, allocations: 0 / 446.4 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.1995, allocations: 7.938 kB / 446.4 MB, free: 7.172 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001223/0.1996, allocations: 111.2 kB / 446.5 MB, free: 7.062 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.02e-07/0.1997, allocations: 0 / 446.5 MB, free: 7.062 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005209/0.2002, allocations: 4 kB / 446.5 MB, free: 7.059 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0001383/0.2004, allocations: 91.25 kB / 446.6 MB, free: 6.961 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002965/0.2007, allocations: 31.86 kB / 446.6 MB, free: 6.93 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.2007, allocations: 0 / 446.6 MB, free: 6.93 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.167e-05/0.2008, allocations: 12.12 kB / 446.6 MB, free: 6.918 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.2014, allocations: 35.66 kB / 446.7 MB, free: 6.887 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000583/0.202, allocations: 175.2 kB / 446.8 MB, free: 6.676 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.2023, allocations: 0.6889 MB / 447.5 MB, free: 5.961 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.2024, allocations: 11.44 kB / 447.5 MB, free: 5.949 MB / 282.7 MB Notification: Performance of SimCode: time 1.332e-06/0.2024, allocations: 0 / 447.5 MB, free: 5.949 MB / 282.7 MB Notification: Performance of Templates: time 0.003921/0.2063, allocations: 0.6112 MB / 448.2 MB, free: 5.34 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches