Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002992/0.002999, allocations: 189.3 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.003/4.003, allocations: 205.4 MB / 222.6 MB, free: 13.85 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.001745/0.001745, allocations: 98.78 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.2943/0.2943, allocations: 12.59 MB / 331.8 MB, free: 10.31 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009669/0.0009674, allocations: 11.84 kB / 392 MB, free: 54.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1792, allocations: 50.38 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.004063/0.1833, allocations: 1.555 MB / 443.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00303/0.1864, allocations: 0.9057 MB / 444.8 MB, free: 9.137 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002582/0.1867, allocations: 7.938 kB / 444.8 MB, free: 9.129 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000926/0.1877, allocations: 131.6 kB / 444.9 MB, free: 9 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005732/0.1883, allocations: 95.75 kB / 445 MB, free: 8.906 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.1896, allocations: 159.3 kB / 445.2 MB, free: 8.754 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004555/0.1901, allocations: 123.7 kB / 445.3 MB, free: 8.633 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001982/0.1903, allocations: 25.55 kB / 445.3 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002062/0.1905, allocations: 59.77 kB / 445.4 MB, free: 8.547 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001821/0.1907, allocations: 59.69 kB / 445.5 MB, free: 8.488 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.901e-05/0.1908, allocations: 4 kB / 445.5 MB, free: 8.484 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002603/0.1911, allocations: 35.92 kB / 445.5 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.1912, allocations: 35.89 kB / 445.5 MB, free: 8.414 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.588e-05/0.1913, allocations: 53.58 kB / 445.6 MB, free: 8.355 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004331/0.1918, allocations: 156.5 kB / 445.7 MB, free: 8.203 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.1918, allocations: 0 / 445.7 MB, free: 8.203 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.1918, allocations: 0 / 445.7 MB, free: 8.203 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.1918, allocations: 4 kB / 445.7 MB, free: 8.199 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.001166/0.193, allocations: 488.1 kB / 446.2 MB, free: 7.668 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.137e-05/0.1931, allocations: 12.02 kB / 446.2 MB, free: 7.656 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.1933, allocations: 23.81 kB / 446.3 MB, free: 7.633 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006574/0.194, allocations: 261.5 kB / 446.5 MB, free: 7.34 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.831e-05/0.194, allocations: 8 kB / 446.5 MB, free: 7.332 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.1941, allocations: 8 kB / 446.5 MB, free: 7.324 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006078/0.1947, allocations: 155.6 kB / 446.7 MB, free: 7.145 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.1948, allocations: 7.938 kB / 446.7 MB, free: 7.137 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.012e-05/0.1948, allocations: 8 kB / 446.7 MB, free: 7.129 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1948, allocations: 3.984 kB / 446.7 MB, free: 7.125 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002295/0.1951, allocations: 35.92 kB / 446.7 MB, free: 7.09 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009628/0.1961, allocations: 458.4 kB / 447.2 MB, free: 6.582 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004763/0.1966, allocations: 138.5 kB / 447.3 MB, free: 6.41 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.181e-05/0.1967, allocations: 7.938 kB / 447.3 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003192/0.197, allocations: 85.23 kB / 447.4 MB, free: 6.301 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 4.369e-06/0.197, allocations: 0 / 447.4 MB, free: 6.301 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008478/0.1979, allocations: 157.7 kB / 447.6 MB, free: 6.141 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.1981, allocations: 166.2 kB / 447.7 MB, free: 5.941 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005801/0.1987, allocations: 261 kB / 448 MB, free: 5.676 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.089e-05/0.1987, allocations: 29.7 kB / 448 MB, free: 5.641 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.1989, allocations: 178.8 kB / 448.2 MB, free: 5.465 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.771e-05/0.199, allocations: 23.8 kB / 448.2 MB, free: 5.441 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.448e-05/0.199, allocations: 8 kB / 448.2 MB, free: 5.434 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.196e-05/0.1991, allocations: 314.8 kB / 448.5 MB, free: 5.117 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.1993, allocations: 27.92 kB / 448.5 MB, free: 5.09 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.1995, allocations: 74.86 kB / 448.6 MB, free: 4.992 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.1997, allocations: 32.02 kB / 448.6 MB, free: 4.961 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1997, allocations: 0 / 448.6 MB, free: 4.961 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004809/0.2002, allocations: 109.5 kB / 448.8 MB, free: 4.848 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.2003, allocations: 8 kB / 448.8 MB, free: 4.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.2003, allocations: 0 / 448.8 MB, free: 4.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.089e-05/0.2004, allocations: 4.312 kB / 448.8 MB, free: 4.836 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.2005, allocations: 15.92 kB / 448.8 MB, free: 4.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.2006, allocations: 8.156 kB / 448.8 MB, free: 4.812 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.2008, allocations: 23.8 kB / 448.8 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.2009, allocations: 4 kB / 448.8 MB, free: 4.785 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.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.0002522/0.2011, allocations: 149.5 kB / 449 MB, free: 4.629 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/0.2014, allocations: 65.5 kB / 449 MB, free: 4.559 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001065/0.2015, allocations: 21.7 kB / 449 MB, free: 4.539 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.2016, allocations: 4 kB / 449.1 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.2016, allocations: 4.062 kB / 449.1 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.2016, allocations: 0 / 449.1 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004007/0.202, allocations: 237.4 kB / 449.3 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.2021, allocations: 0 / 449.3 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.2e-05/0.2022, allocations: 7.938 kB / 449.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-05/0.2022, allocations: 4 kB / 449.3 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.2022, allocations: 0 / 449.3 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.025e-06/0.2023, allocations: 4 kB / 449.3 MB, free: 4.234 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.2023, allocations: 0 / 449.3 MB, free: 4.234 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006259/0.2029, allocations: 216.4 kB / 449.5 MB, free: 3.977 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001746/0.2031, allocations: 112.8 kB / 449.6 MB, free: 3.848 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.187e-05/0.2032, allocations: 7.953 kB / 449.6 MB, free: 3.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.2034, allocations: 8 kB / 449.6 MB, free: 3.832 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.926e-05/0.2035, allocations: 11.98 kB / 449.7 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.602e-05/0.2036, allocations: 8 kB / 449.7 MB, free: 3.812 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004009/0.204, allocations: 192.5 kB / 449.8 MB, free: 3.621 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.72e-07/0.204, allocations: 0 / 449.8 MB, free: 3.621 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006745/0.2047, allocations: 35.94 kB / 449.9 MB, free: 3.586 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.006122/0.2109, allocations: 429.6 kB / 450.3 MB, free: 3.164 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005761/0.2115, allocations: 75.84 kB / 450.4 MB, free: 3.09 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.2116, allocations: 0 / 450.4 MB, free: 3.09 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.2118, allocations: 27.98 kB / 450.4 MB, free: 3.062 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008434/0.2126, allocations: 68.11 kB / 450.5 MB, free: 3 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.2139, allocations: 387 kB / 450.8 MB, free: 2.582 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.2143, allocations: 0.7322 MB / 451.6 MB, free: 1.824 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.2145, allocations: 23.42 kB / 451.6 MB, free: 1.801 MB / 282.7 MB Notification: Performance of SimCode: time 1.382e-06/0.2145, allocations: 0 / 451.6 MB, free: 1.801 MB / 282.7 MB Notification: Performance of Templates: time 0.01119/0.2257, allocations: 2.661 MB / 454.3 MB, free: 15.13 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches