Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.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.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002961/0.002966, allocations: 188.1 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 4.106/4.106, allocations: 205.4 MB / 222.6 MB, free: 13.83 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.001873/0.001872, allocations: 94.8 kB / 270.9 MB, free: 13.36 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.2343/0.2343, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008967/0.0008972, allocations: 16.05 kB / 392 MB, free: 54.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1768, allocations: 50.37 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.004153/0.181, allocations: 1.633 MB / 444 MB, free: 9.973 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003425/0.1845, allocations: 0.9446 MB / 444.9 MB, free: 9.02 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002757/0.1849, allocations: 7.938 kB / 444.9 MB, free: 9.012 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001/0.1859, allocations: 125.1 kB / 445.1 MB, free: 8.891 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005593/0.1865, allocations: 107.7 kB / 445.2 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001387/0.1879, allocations: 187.2 kB / 445.3 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000467/0.1884, allocations: 135.7 kB / 445.5 MB, free: 8.473 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.1886, allocations: 40.28 kB / 445.5 MB, free: 8.434 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.1888, allocations: 79.67 kB / 445.6 MB, free: 8.355 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001804/0.189, allocations: 71.62 kB / 445.7 MB, free: 8.285 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.967e-05/0.1891, allocations: 4 kB / 445.7 MB, free: 8.281 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002372/0.1893, allocations: 39.92 kB / 445.7 MB, free: 8.242 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.1895, allocations: 47.81 kB / 445.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.107e-05/0.1896, allocations: 57.58 kB / 445.8 MB, free: 8.133 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004134/0.19, allocations: 172.5 kB / 446 MB, free: 7.965 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.19, allocations: 0 / 446 MB, free: 7.965 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.19, allocations: 0 / 446 MB, free: 7.965 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.19, allocations: 4 kB / 446 MB, free: 7.961 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001133/0.1912, allocations: 0.5117 MB / 446.5 MB, free: 7.395 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.939e-05/0.1913, allocations: 8.031 kB / 446.5 MB, free: 7.387 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.1914, allocations: 23.72 kB / 446.5 MB, free: 7.363 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006438/0.1921, allocations: 269.6 kB / 446.8 MB, free: 7.059 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.46e-05/0.1921, allocations: 15.94 kB / 446.8 MB, free: 7.043 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.983e-05/0.1922, allocations: 12 kB / 446.8 MB, free: 7.031 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.1933, allocations: 314 kB / 447.1 MB, free: 6.699 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.1933, allocations: 0 / 447.1 MB, free: 6.699 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/0.1934, allocations: 4 kB / 447.1 MB, free: 6.695 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.1934, allocations: 7.938 kB / 447.1 MB, free: 6.688 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003257/0.1938, allocations: 55.97 kB / 447.2 MB, free: 6.633 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.1948, allocations: 398.2 kB / 447.6 MB, free: 6.188 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005944/0.1954, allocations: 164 kB / 447.7 MB, free: 6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.534e-05/0.1955, allocations: 11.98 kB / 447.7 MB, free: 5.988 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.1958, allocations: 79.45 kB / 447.8 MB, free: 5.898 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 4.97e-06/0.1958, allocations: 0 / 447.8 MB, free: 5.898 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009492/0.1968, allocations: 233.4 kB / 448.1 MB, free: 5.664 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.998e-05/0.1969, allocations: 144.5 kB / 448.2 MB, free: 5.492 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004995/0.1974, allocations: 276.9 kB / 448.5 MB, free: 5.215 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.1975, allocations: 29.7 kB / 448.5 MB, free: 5.18 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.682e-05/0.1976, allocations: 171.1 kB / 448.7 MB, free: 5.012 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.547e-05/0.1976, allocations: 27.64 kB / 448.7 MB, free: 4.984 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.654e-05/0.1977, allocations: 8 kB / 448.7 MB, free: 4.977 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.738e-05/0.1978, allocations: 318.8 kB / 449 MB, free: 4.656 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.198, allocations: 36.45 kB / 449 MB, free: 4.621 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.1982, allocations: 171.2 kB / 449.2 MB, free: 4.395 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002105/0.1985, allocations: 67.95 kB / 449.3 MB, free: 4.328 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.1985, allocations: 0 / 449.3 MB, free: 4.328 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006379/0.1992, allocations: 209.6 kB / 449.5 MB, free: 4.117 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.1992, allocations: 4 kB / 449.5 MB, free: 4.113 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.1992, allocations: 4 kB / 449.5 MB, free: 4.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.37e-05/0.1993, allocations: 11.95 kB / 449.5 MB, free: 4.098 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.1995, allocations: 24.3 kB / 449.5 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.765e-05/0.1995, allocations: 7.938 kB / 449.5 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002875/0.1998, allocations: 19.89 kB / 449.6 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.1998, allocations: 16 kB / 449.6 MB, free: 4.031 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0002865/0.2001, allocations: 171.8 kB / 449.7 MB, free: 3.852 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003623/0.2005, allocations: 129.3 kB / 449.9 MB, free: 3.719 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/0.2006, allocations: 29.66 kB / 449.9 MB, free: 3.688 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.2007, allocations: 7.953 kB / 449.9 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.2007, allocations: 0 / 449.9 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.2007, allocations: 3.984 kB / 449.9 MB, free: 3.676 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003427/0.2011, allocations: 237.6 kB / 450.1 MB, free: 3.395 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.2011, allocations: 0 / 450.1 MB, free: 3.395 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.639e-05/0.2012, allocations: 12.23 kB / 450.1 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-05/0.2012, allocations: 8 kB / 450.2 MB, free: 3.375 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.2013, allocations: 8 kB / 450.2 MB, free: 3.367 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.2013, allocations: 4 kB / 450.2 MB, free: 3.363 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.2013, allocations: 3.953 kB / 450.2 MB, free: 3.359 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007161/0.202, allocations: 252.6 kB / 450.4 MB, free: 3.082 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.2022, allocations: 116.8 kB / 450.5 MB, free: 2.949 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.447e-05/0.2023, allocations: 15.94 kB / 450.5 MB, free: 2.934 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.2025, allocations: 8 kB / 450.6 MB, free: 2.926 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.52e-05/0.2026, allocations: 4 kB / 450.6 MB, free: 2.922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.266e-05/0.2027, allocations: 15.92 kB / 450.6 MB, free: 2.906 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003612/0.203, allocations: 196.5 kB / 450.8 MB, free: 2.711 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.2031, allocations: 0 / 450.8 MB, free: 2.711 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000774/0.2039, allocations: 36 kB / 450.8 MB, free: 2.676 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001754/0.2056, allocations: 445.2 kB / 451.2 MB, free: 2.242 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007823/0.2065, allocations: 132.8 kB / 451.4 MB, free: 2.113 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.2065, allocations: 3.938 kB / 451.4 MB, free: 2.109 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001634/0.2067, allocations: 28.05 kB / 451.4 MB, free: 2.082 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.2077, allocations: 108.3 kB / 451.5 MB, free: 1.977 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.2092, allocations: 446.3 kB / 451.9 MB, free: 1.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.2096, allocations: 0.7638 MB / 452.7 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.2098, allocations: 31.42 kB / 452.7 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of SimCode: time 1.743e-06/0.2098, allocations: 0 / 452.7 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of Templates: time 0.01454/0.2243, allocations: 3.158 MB / 455.9 MB, free: 13.52 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches