Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002691/0.002691, allocations: 188.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.902/3.902, 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.001944/0.001944, allocations: 90.86 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.2305/0.2305, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.00109, allocations: 13.81 kB / 392 MB, free: 54.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1765, allocations: 50.38 MB / 442.4 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.004183/0.1808, allocations: 1.57 MB / 443.9 MB, free: 10.02 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003286/0.1841, allocations: 0.9212 MB / 444.8 MB, free: 9.094 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000288/0.1845, allocations: 0 / 444.8 MB, free: 9.094 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.1856, allocations: 139.6 kB / 445 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006545/0.1863, allocations: 87.75 kB / 445.1 MB, free: 8.871 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.1877, allocations: 163.5 kB / 445.2 MB, free: 8.715 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005267/0.1883, allocations: 115.8 kB / 445.3 MB, free: 8.602 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/0.1886, allocations: 33.59 kB / 445.4 MB, free: 8.566 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003004/0.1889, allocations: 63.7 kB / 445.4 MB, free: 8.504 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.1891, allocations: 63.75 kB / 445.5 MB, free: 8.441 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.44e-05/0.1892, allocations: 7.938 kB / 445.5 MB, free: 8.434 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002735/0.1895, allocations: 27.98 kB / 445.5 MB, free: 8.406 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.1896, allocations: 39.89 kB / 445.6 MB, free: 8.367 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.1897, allocations: 53.58 kB / 445.6 MB, free: 8.309 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004359/0.1902, allocations: 154.5 kB / 445.8 MB, free: 8.16 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1902, allocations: 0 / 445.8 MB, free: 8.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1902, allocations: 0 / 445.8 MB, free: 8.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.1903, allocations: 0 / 445.8 MB, free: 8.16 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001212/0.1915, allocations: 0.493 MB / 446.3 MB, free: 7.613 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.114e-05/0.1916, allocations: 8.031 kB / 446.3 MB, free: 7.605 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.1917, allocations: 23.72 kB / 446.3 MB, free: 7.582 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007413/0.1925, allocations: 265.7 kB / 446.6 MB, free: 7.281 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.189e-05/0.1926, allocations: 4 kB / 446.6 MB, free: 7.277 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/0.1927, allocations: 8 kB / 446.6 MB, free: 7.27 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007078/0.1934, allocations: 167.5 kB / 446.7 MB, free: 7.078 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.1935, allocations: 4 kB / 446.7 MB, free: 7.074 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.193e-05/0.1935, allocations: 4 kB / 446.7 MB, free: 7.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.1936, allocations: 7.938 kB / 446.7 MB, free: 7.062 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002486/0.1938, allocations: 31.92 kB / 446.8 MB, free: 7.031 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009671/0.1948, allocations: 379.2 kB / 447.1 MB, free: 6.602 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000537/0.1954, allocations: 138.5 kB / 447.3 MB, free: 6.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.441e-05/0.1955, allocations: 4 kB / 447.3 MB, free: 6.426 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003145/0.1959, allocations: 79.5 kB / 447.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 5.421e-06/0.1959, allocations: 0 / 447.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008713/0.1968, allocations: 161.6 kB / 447.5 MB, free: 6.172 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.197, allocations: 174.1 kB / 447.7 MB, free: 5.965 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000598/0.1976, allocations: 269 kB / 448 MB, free: 5.695 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/0.1976, allocations: 25.7 kB / 448 MB, free: 5.664 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.1978, allocations: 178.9 kB / 448.2 MB, free: 5.488 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.932e-05/0.1979, allocations: 19.8 kB / 448.2 MB, free: 5.469 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.197e-05/0.1979, allocations: 0 / 448.2 MB, free: 5.469 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.386e-05/0.198, allocations: 314.8 kB / 448.5 MB, free: 5.152 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001811/0.1982, allocations: 27.98 kB / 448.5 MB, free: 5.125 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.1985, allocations: 75.72 kB / 448.6 MB, free: 5.023 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001972/0.1987, allocations: 39.95 kB / 448.6 MB, free: 4.984 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.1987, allocations: 0 / 448.6 MB, free: 4.984 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005447/0.1993, allocations: 117.5 kB / 448.7 MB, free: 4.863 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/0.1994, allocations: 4 kB / 448.7 MB, free: 4.859 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.1994, allocations: 4 kB / 448.7 MB, free: 4.855 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.884e-05/0.1994, allocations: 192 / 448.7 MB, free: 4.855 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/0.1997, allocations: 23.92 kB / 448.8 MB, free: 4.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/0.1997, allocations: 0 / 448.8 MB, free: 4.832 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.2, allocations: 15.89 kB / 448.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.2001, allocations: 8 kB / 448.8 MB, free: 4.809 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0002988/0.2004, allocations: 141.6 kB / 448.9 MB, free: 4.66 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004946/0.2009, allocations: 81.34 kB / 449 MB, free: 4.574 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001453/0.2011, allocations: 25.8 kB / 449 MB, free: 4.551 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.2011, allocations: 0 / 449 MB, free: 4.551 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.2011, allocations: 4 kB / 449 MB, free: 4.547 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.2012, allocations: 0 / 449 MB, free: 4.547 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003965/0.2016, allocations: 237.5 kB / 449.3 MB, free: 4.266 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.2016, allocations: 0 / 449.3 MB, free: 4.266 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.836e-05/0.2017, allocations: 7.938 kB / 449.3 MB, free: 4.258 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.297e-05/0.2018, allocations: 4 kB / 449.3 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.2018, allocations: 320 / 449.3 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.191e-05/0.2018, allocations: 7.984 kB / 449.3 MB, free: 4.246 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.2019, allocations: 4 kB / 449.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006407/0.2025, allocations: 208.5 kB / 449.5 MB, free: 3.992 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/0.2028, allocations: 120.8 kB / 449.6 MB, free: 3.855 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.433e-05/0.2029, allocations: 3.953 kB / 449.6 MB, free: 3.852 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.2031, allocations: 7.984 kB / 449.6 MB, free: 3.844 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.033e-05/0.2032, allocations: 8 kB / 449.6 MB, free: 3.836 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.2032, allocations: 4 kB / 449.6 MB, free: 3.832 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004354/0.2037, allocations: 196.5 kB / 449.8 MB, free: 3.637 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.2037, allocations: 0 / 449.8 MB, free: 3.637 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006534/0.2044, allocations: 31.98 kB / 449.9 MB, free: 3.605 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.006031/0.2105, allocations: 421.3 kB / 450.3 MB, free: 3.195 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006067/0.2111, allocations: 75.84 kB / 450.3 MB, free: 3.121 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.2112, allocations: 0 / 450.3 MB, free: 3.121 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.2114, allocations: 27.98 kB / 450.4 MB, free: 3.094 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009621/0.2124, allocations: 72.97 kB / 450.4 MB, free: 3.023 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005592/0.218, allocations: 394.4 kB / 450.8 MB, free: 2.598 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.2184, allocations: 0.7401 MB / 451.6 MB, free: 1.832 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.2186, allocations: 23.38 kB / 451.6 MB, free: 1.809 MB / 282.7 MB Notification: Performance of SimCode: time 1.533e-06/0.2186, allocations: 4 kB / 451.6 MB, free: 1.805 MB / 282.7 MB Notification: Performance of Templates: time 0.01239/0.231, allocations: 2.771 MB / 454.4 MB, free: 15.03 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches